I have successfully returned the list of users using a custom function and the echo tag. In the front end, the user list displays. I’ve looked at the HTML, and the value is correctly the wp_user_id and the label is the name.
The problem is specifying the “default” user in this list.
When there is “no”/“empty”/“invalid” value returned , I expect the placeholder text to be displayed. This is currently true. No value = placeholder text.
When I enter a value manually, e.g. “3” - in the BricksBuilder and Frontend it displays the name of the user with value id = 3. Exactly as expected.
However, when I put a dynamic tag into the “Value” field, it returns empty/no value. Even though I can confirm wholeheartedly that a number value is being returned.
Can someone explain to me why dynamic tags are not correctly supported in this field or what I’m doing wrong?
I’ve tried many filters including :number and :raw to ensure it isn’t a type conversion error but the only way to correctly set the default item in the select list is to specify the number MANUALLY in the builder which is not acceptable.
Can also confirm that “Use Modern Select” does not fix this issue. Please ensure the fix for this works for both standard select and modern select. Thank you.
Hi Dave, thanks for coming back with a solution of sorts.
I don’t know, I’ve spent so many hours scratching my brain trying to work out why this didn’t work, so maybe I’m misunderstanding this… my data source (users, glossaries, posts) are fixed. Which item is ‘active’ or ‘selected’ or ‘current’ is determined from somewhere else.
When I add an INPUT field to a form, and then put a JE Dynamic Tag in the “Value” field, it puts that data in that field by default.
When I do that for a select form field using a manual value (e.g. 3) the value I want works. But if it is dynamic data it doesn’t work. Why does it work if I put a value in manually but not when I specify it using a dynamic tag?
Does this product not allow a dynamic tag to determine the default option of a select field?
For anyone else experiencing this bug, you need to make the following modifications to the Select.php file until the development team get around to fixing it properly: