This topic is locked

How to add one more input field

5/20/2010 4:17:51 AM
PHPRunner General questions
F
futo author

hello,
i want to add option on add page og my form to add one more input field for same field


and to remove them if i want


thanks,
Tomo
PHPRunner 5.2 4905, MySQL

A
ann 5/20/2010

Tomo,
to add such an option you should create an additional field in the table, say Eposta2. Then proceed to the HTML mode on the Visual Editor tab and add a code to create a link "dodaj":

<A href="#" onclick="dodaj()">dodaj</A>



and change the code below(bold):>

{BEGIN Eposta2_fieldblock}<TR id=hidediv>

<TD style="PADDING-LEFT: 15px" class=editshade_b width=150>{BEGIN Eposta2_label}Eposta2{END Eposta2_label}</TD>



Thereafter type at the end of the page:

<script>

document.getElementById("hidediv").style.display ="none";

function dodaj(){

document.getElementById("hidediv").style.display ="table-row";

}

</script>
F
futo author 5/20/2010

THANKS FOR REPLY, I WIL TRY THIS
TOMO



Tomo,
to add such an option you should create an additional field in the table, say Eposta2. Then proceed to the HTML mode on the Visual Editor tab and add a code to create a link "dodaj":

<A href="#" onclick="dodaj()">dodaj</A>



and change the code below(bold):

Thereafter type at the end of the page:

<script>

document.getElementById("hidediv").style.display ="none";

function dodaj(){

document.getElementById("hidediv").style.display ="table-row";

}

</script>