DMXzone Ajax Form Support Product Page

Is it possible to use the Ajax Form to populate a hidden field in the form?

Asked 27 Feb 2015 09:07:33
1
has this question
27 Feb 2015 09:07:33 Hans Kiesouw posted:
I have a drop menu with names and want to be able to populate a hidden field with the user ID associated with the name in the drop menu.

Currently the value associated with the name in the drop menu, is the email address, as the form will submit a question to the "name" in the drop menu. On submission, the question is stored in the database, along with the other fields that the user populated and an email is sent to the "name" selected in the drop menu.

Any help with this will be appreciated.

Thanks
Hans

Replies

Replied 27 Feb 2015 12:34:02
27 Feb 2015 12:34:02 Teodor Kuduschiev replied:
Hello Hans,
You can use HTML5 Data Bindings in order to set the value of the hidden field to be equal to the selected id in the select menu.
Replied 02 Mar 2015 07:10:42
02 Mar 2015 07:10:42 Hans Kiesouw replied:
Thanks, but I need the drop menu to have the email address as the value and then a hidden filed to have the ID of the email address. So I need 3 values, one the Name- shows in the drop menu, two, the email address and 3 the UserID for the Name. The UserID is stored in the database and the message is sent to the address.

I am not sure how I can achieve this and any help would be greatly appreciated.

Thanks
Hans

Reply to this topic