Dear Bubblers,
I am trying to pass dropdown values from one page to another. I guess via url parameters is best. But I’m not getting the right results. The params are passing through but my dropdown display is not as expected. Should I have my dynamic statement (Get [parameter] from URL) in the dropdown’s Placeholder field or Default field if that’s what I want displayed?
I don’t really get the difference between Placeholder and Default.
Add to the mix, I’m using an Option Set in my dropdown, perhaps that’s complicating things.
Thx for any pointers.
The placeholder is just what it says when no value has yet been selected, and can only be text.
e.g. ‘Please select a value…’
The default content is actually a value (of the ‘type’ the dropdown is set to).
So you’ll want to use default value, not placeholder.
As you’re using an option set (option don’t have unique ids) you can use the option’s ‘Display’ as the url parameter, and when you select the option set’s data type in the Get Data From URL options window, that will match the url parameter with the option.
If you’re using any other attribute of the option then you’ll need to match it by doing a search with the appropriate constraint.
Adam, that clears that difference up, great thx.
But my element box is not letting me add anything to the default field when I have chosen an option set. Am I doing something wrong?
I might actually make my own dropdown boxes with RG & states, seems alot more flexible. I have tried, but if I assign a custom state to a page, can I use that state anywhere in my app?
It won’t let you? As in nothing happens when you click in the Default Value box?
Yes, won’t let me click into it. I actually have 2 errors on these same elements that I can’t clear either. So I think I’ll just delete them and start fresh. You’re saying that you should be able to set a default, even with Option Sets?
Yes you should be able to - I just created a quick test using an option set in a dropdown and it’s allowing me to do it and working as expected (see below).
I can’t see any reason why it wouldn’t let you set a default value, so it could be a bug - you could try deleting the elements as you say, and creating them again to see if that works.
1 Like
Great thanks Adam, very helpful, I can move on now
1 Like