default value depends on dropdown selected value of other element

babbelut

New Member
Hi all,

I have a field element where the default value depends on the selected value of a dropdown element.

how can I access the selected value of the dropdown element in my field element php code?

thank you very much!
 
You can get the content of form fields with placeholders, i.e.
'{tablename___elementname}' or '{tablename___elementname_raw}' (raw = value in case of dbjoin or dropdown elements)

But the default value of an element is only inserted/evaluated when loading a new form.
If the value of the element should change if the dropdown is changed you can use a cascading dropdown element or a calculation element or you have to do it with JS.
 
We are in need of some funding.
More details.

Thank you.

Staff online

Members online

Back
Top