Hi all,
I have a select list in an embedded form and if I select one element of the select list, then I want the input fields to be filled dependent of the selected element of the list. How can I achieve this using the camform?
Hi Niall,
sorry, the post was not complete. My form example was not added. I am able to fill the select list. My problem is to listen to the select event of the select box and then refresh the input text field. I do not know how to do this with the camform?
In the embedded form, you can also use plain Javascript. For this use-case you could add an id attribute to the select field and use Javascript to add a change event listener to the select field within the form-loaded callback. This listener is then called whenever the selection changed and you can update the input text field.
Hi Sebastian,
Thank you, your solution works for me. I have one problem left, I guess.
Within the camForm.on(‘form-loaded’, function() { I am setting the input fields. The camForm is now already loaded. How can I refresh the camForm to make the changes viewable?