Page 1 of 1

dynamic forms: how to make fields read-only dynamically?

Posted: 2011-11-07 12:34
by antonio
Hi all/Fred ;) ,

I would like to build a dynamic form that acts differently based on user actions.

Example:
I have a form with a dropdown menu where the user can select item 1 and item 2.
The form contains other 2 fields:
- item 1 details
- item 2 details

I would like to make the field "Item details 2" read-only (or disappear completely) after the user has selected 'item 1' in the drop-down menu.

Vice-versa, is there a way to make fields appear only after user selections?
I think this is something to do with a tool like jquery, but I would like to ask if this is feasible with ADDT (or Kollection pro) alone.

TIA

tony

Re: dynamic forms: how to make fields read-only dynamically?

Posted: 2011-11-08 10:38
by Fred
You will have to go the jquery route as with ADDT on its own the page doesn't get refreshed so the new option will not get hidden or displayed.

Jquery is easy enough to implement and should do the job just fine.