This topic is locked

After selecting a drop down

10/15/2009 2:03:07 AM
PHPRunner General questions
M
meirco author

I added this to the BeforeAdd
global $conn;

if ($values["activity"] != " ")

{

echo " You selected "+ $values["activity"];

}
but it does not display after selecting an activity from lookup/dropdown .
How can I get the value returned/selected and display it.

J
Jane 10/15/2009

Hi,
use JavaScript code to show selected value. You can add JavaScript code on the Visual Editor tab in HTML mode.

Here is just a sample:

document.forms.editform.value_FieldName.onchange = function()

{

alert('You selected'+document.forms.editform.value_FieldName.value);

}
D
danaci 10/16/2009

Hi,
use JavaScript code to show selected value. You can add JavaScript code on the Visual Editor tab in HTML mode.

Here is just a sample:

document.forms.editform.value_FieldName.onchange = function()

{

alert('You selected'+document.forms.editform.value_FieldName.value);

}



[/quote]
How do I use this code, you'll be glad to help in

thnx

J
Jane 10/16/2009

To add JavaScript code proceed to theVisual Editor tab, switch to HTML mode and add you code at the end of the page.