I found an existing topic that seems the same as mine , however the solution didn’t work for me.
I’m trying to set up my drop downs on a form to have a default value of the Service I’m editing, so my form can be used to create AND edit.
However, when I fill it out like the above, I get an error
I tried deleting and recreating the drop down, but it is still giving me the same error.
hergin
April 29, 2024, 6:30pm
2
So you are saying Current page's Services's Category
is not text but its type is option set Service Categories
?
Yeah, my Service’s Category are option sets
hergin
April 29, 2024, 6:34pm
4
Can you please show Services
data type?
But I’m storing it in my DB like this… maybe that’s incorrect?
hergin
April 29, 2024, 6:35pm
6
Yes. Thats incorrect. This should be of type option set as well.
If you like to insist storing as text (which is not good practice), then, while setting the default, you should filter all option sets by display value and get the one with this text in it.
1 Like
So, I should do this instead?
That seems like it did the trick! Thank you!
Just curious, you said “a starter”… is there something else I need to consider?
hergin
April 29, 2024, 6:46pm
10
I said because I dont know the context of your application and whethet that would help you or you would need other things
I understand
What you said was extremely helpful and has put me in the right direction. Thanks again!
1 Like
system
Closed
July 8, 2024, 6:25pm
12
This topic was automatically closed after 70 days. New replies are no longer allowed.