Hi all,
Scenario = There are 10 different radio1 buttons and 10 different SubRadio1 field.
When selecting YES or N/A, do not show SubRadio1, but when selecting NO, show SubRadio1.
When submit button is clicked without selecting mandatory fields, show error.
Currently, with my code, my form1's submit button does not work, and the errors do not show up if mandatory fields are not selected. I'm not sure how else to fix this. I'm still new to using powerapps.
My current code below:
RadioButton - Radio1("yes","no","n/a")
> items property = ["yes","no","n/a"]
> Update property = If(Radio1.Selected.Value = "No",true,false)
> Required property = true
> BorderColor = If(ShowError && IsBlank(ThisItem.Radio1),Red,Transparent)
DropDownField - SubRadio1 ('list of choice')
> Visible property = SubRadio1.Selected.Value = "No"
> Required property = true
Form1
> OnVisible = ClearCollect(RadioButtons, {Name:"Radio1",Selected:""}) 10 more RadioButtons added in this clearCollect
>OnSuccess = ResetForm(Form1); ViewForm(Form1); Navigate(HomePage)
SubmitButton
> OnSelect = UpdateContext({ShowError:true}); SubmitForm(Form1);