I need to leave one of the items in the Choice field selected by default (the user can change it if he wants to). I've already tried to get the first one or select a specific one, I've seen many articles/videos, but I couldn't solve it. The message it gives:
"Expected OptionSetValue value."
A Table:
The field:
The card:
The message (in pt-BR):
You are looking at the Default property of your Form DataCard...that is what supplies the value for the datacard. It should be based on the underlying field, not a table of choices.
In general, you do not want to change the Default of the Datacard.
It should be ThisItem.yourFieldNameHere
It is within the DefaultSelectedItems property of the combobox that you want to introduce the logic for a default selection...and that should be based on if there is not already a selection so that you are not over running your existing record values.
I hope this is helpful for you.
@RandyHayes, I'm doing some tests, but I still can't solve it:
Test1 - It contains the content, but it is not possible to change it to other options, it is only in 'Simples Nacional':
Test2 - Does not bring content by default:
Test3 - There will always be content in ThisItem.'Regime Tributário', in any case, only brings the 'Simples Nacional' since if there is content, it will do as in Test1:
Test4 - No content and the message is: "This rule creates a circular reference between properties, which is not allowed. A property cannot reference itself or other properties affected by its value. This is the shortest circular reference : 'DataCardValue53'.'DefaultSelectedItems' -> 'DataCardValue53'.'DefaultSelectedItems'"
User | Count |
---|---|
254 | |
106 | |
92 | |
47 | |
37 |