Hi there.
I hope someone could point me in the right direction for this:
In my app I have a Radio Button "Radio1" it has a hard core items " ["North","South","East","West"]
My edit form is connected with my SharePoint List and in that list I have a text field "Zone"
Basically in my app when the user select a customer form my collection the rest of the fields show the values for that customer.
What I can't do is:
I would like to see in my Radio1 the default values in my column Zone. When the form is in view/edit mode. when the form is in New Mode the Radio should be empty.
thanks in advance for any help.
Have you tried toggling a global variable depending on the mode of your form, and then using that with an If statement in the radio button's Default property?
@sajarac put the radio inside the data card for Zone and set the Items property of the Radio to Choices([@Orders]. Zone) and the default to Parent.Default
Hi @CNT. I haven't tried but the column Zones is not a Choices column is a single text line.
Hi @BCLS776. I think that the if statement could work but I don't know how to elaborate. I have tried but the Radio is complaining because is expecting a table value
Ah, the Default property of the radio control doesn't like an If statement within it. Here's how to get around that:
With your radio control set up with four choices, (North, South, East, West), add a simple text box and assign its value to the Default field of the radio control:
Label1.Text
Then set the Text field for the text box using an If statement:
If(Toggle1.Value,"No Choice","North")
In my test example, I use a simple toggle switch to change the condition for the If statement, but you can use a global variable that you Set to true or false depending on your form's mode. "North" in this example can be replaced by any text entry, such as the one from an existing record field.
Toggling the variable that controls the text box produces two states for the radio control:
Will that work for your situation?
User | Count |
---|---|
153 | |
93 | |
84 | |
77 | |
58 |
User | Count |
---|---|
197 | |
176 | |
106 | |
96 | |
89 |