I have 2 columns code1 and code2. Code1 text is set to allow only numbers and code2 is set to allow only text for instance. code1 is hidden and code2 is visible when choice selected value is Yes. But the form is not submitting the form without values on both code1 and code2 , though code1 is hidden.
Please help.
Thanks
Solved! Go to Solution.
Here is what I would do. There are 3 places to make changes. What these will do is disable your submit button if the choice is No and code2 is blank. It will clear code2 if the choice is Yes and the warning label will be displayed if the choice is No and code2 is blank.
In the choice OnSelect:
If(Self.Selected.Value = "Yes", Reset(code2))
In the Warning Label Visible: Note you can set whatever criteria you need here, to include matching functions if code2 needs to match specific criteria like length or type of characters.
If(
ChoiceControl.Value = "No" && IsBlank(Code2.Text), true,
false
)
In the DisplayMode for your submit button:
If(
WarningLabel.Visible, DisplayMode.Disabled, DisplayMode.Edit
)
@GMRaju3 Where/How do you do the validation for code2?
HI JR,
Thanks a lot. That works !
This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.
User | Count |
---|---|
184 | |
53 | |
50 | |
37 | |
36 |
User | Count |
---|---|
274 | |
91 | |
85 | |
76 | |
75 |