Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Problems showing / hiding numeric fields

Avatar

Level 1

Hi,

     I am creating a form using a table as a skeleton.  I want some rows to appear only when the filler selects a radio button.  I am using the following code using a change event on my Yes (radio button):

if

($.rawValue == "1") then

Table1.Row14[5].presence

= "visible"

Table1.Row14[6].presence

= "visible"

else

Table1.Row14[5].TextField4.presence

= "hidden"

Table1.Row14[6].presence

= "hidden"

endif

Row14[5] is showing / hiding with no problem when the radiobutton is on or off.  I have some problems with Row14[6] in which I have a numeric field and a dropdown list.  The dropdown list is showing / hiding with no problem but the script does not seem to have any effect on the numeric field.

Can someone help?

2 Replies

Avatar

Level 10

Check in the Heirarchy that the Numeric field is part of Row14[6]..

Otherwise post your form to have a look at it..

Thanks

Srini

Avatar

Level 1

Hi Srini,

I was only entering my script in my yes button but I found that I also had to add it to my No button.

Thanks for the help.