Proforms Select Fields not accepting default value when using Dynamic Data

Hey Daniele,

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.



Hey @Daniele, are you able to look into this?

Did you try the “Conditionally Selected” functionality in the option field? :blush:

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 :slight_smile:

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 :slight_smile:

2 Likes

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?

Feel free to open a ticket. We’ll take a look :blush:

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.

1 Like

Hey there Bricksforge Team and @Daniele.

I appear to be running into this same bug again.

Is it possible this bug has reared its ugly head again?

If I use static data in the Value field, it works, but the second I move it to a {url_parameter:package} dynamic data tag it no longer functions.

Every other field I have set up works.

Thanks in advanced for looking into this!

Hey! :slight_smile:

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 :slight_smile:

Hi @Daniele,

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:

EDIT:

I now see that the Option field can go WITHIN the select field. This will solve my issues!

Thank you!


Brian

1 Like