Found a bug when using dynamic data to set an initial value in pro forms.
When using something like “{brf_post_status:{url_parameter:id}}” in the value field when using a select field, it doesn’t select the value. Also confirmed the bug exists when using dynamic data and meta fields as well.
Can confirm in the html inspector you can see the correct value.
I added a text box to confirm what the output is, see screenshot.
Hello… working on a client site and have come up against the same issue. Tried the conditionally selected functionality as well. seems that the VALUE field in the GENERAL tab of the select is not working. not sure why but even directly entering a static value seems broken. Please advise and thank you.
Have the same problem when trying to select a value using URL parameter dynamic data. Works perfect in standad (non-nestable) approach. What do you mean by using “Conditionally Selected”? AFAIK it only let’s you select the value based on post tags or option, not dynamic values like mentioned. Please provide a workaround or fix if it’s in fact a bug
This bug has been fixed. Currently, if using nestable “Option” field, the Options are not respecting dynamic data from the parent value. The parent value currently only works if adding static options inside the “Select” element repeater.
In the next version, which will be deployed next week, the option fields are handling dynamic data from the parent value. This should solve the problem
Thank you Daniele… Client updated to 2.1.9 yesterday but I still cannot get any of their “selects” to recognize the value field. The standard (in the “genera tab”) defaults to the first option and the dynamic options (in the “structure panel”) force to the last option. This is what gets saved to the DB. They are acf fields that are properly working in standard proform fields. I also entered a non dynamic “value” and same result. Am I possibly/probably doing something incorrectly?
I must apologize Daniele. The client had made several untold changes to the “Conditionally Selected” fields and this is what caused the selects not to work in the latest update. Once again, I am sorry to take up any valuable time on this matter.
I would recommend you to use the “Conditionally Selected” approach inside your Option. To enter a dynamic default value inside the “Value” field can cause problems because of the nestable field nature.
If that does not work for you, feel free to send a ticket with access
Does ‘Conditionally Selected’ not work with the ‘Select’ field within Pro Forms, or would you recommend I switch to the ‘Option’ Field instead?
With the ‘Select’ field, I’m not seeing ‘Conditionally Selected’ — I’ve used conditionally selected on a Checkbox Wrapper + Checkbox field before and it worked marvelously.
Here’s a screenshot of my current ‘Select’ panel for clarification: