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

Any tips and tricks that has to with the ADDT that doesn't fit into one of the other categories
antonio
Posts: 77
Joined: 2010-09-28 11:48

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

Post by antonio » 2011-11-07 12:34

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

User avatar
Fred
Site Admin
Posts: 491
Joined: 2010-02-15 12:10
Location: Armagh, Northern Ireland
Contact:

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

Post by Fred » 2011-11-08 10:38

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.

Post Reply