Dynamic field visibility

A place for users and developers of the Xataface to discuss and receive support.

Dynamic field visibility

Postby clawes » Wed May 09, 2012 6:38 pm

I need a way of making a field visible and required if a prior field (checkbox) is selected.
For example, show the State list only if the Country USA is selected. Otherwise, the State list is not visible.

TIA
clawes
 
Posts: 22
Joined: Mon May 07, 2012 12:02 pm

Re: Dynamic field visibility

Postby shannah » Tue May 15, 2012 9:44 am

You'll need to do this with Javascript.
Create a function that updates the visibility of the field that you want to hide based on the value of the one field. Add this function to both the document ready event and the change event of the other element.

-Steve
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm

Re: Dynamic field visibility

Postby clawes » Tue May 15, 2012 10:55 am

I came to the same conclusion after doing some further research.
Have to brush up on my javascripting skills...

Thx.
clawes
 
Posts: 22
Joined: Mon May 07, 2012 12:02 pm


Return to Xataface Users

Who is online

Users browsing this forum: No registered users and 2 guests

Powered by Dataface
© 2005-2007 Steve Hannah All rights reserved