I'm trying to capture required fields. That have to be filled in.
Trying to get my IF statement to work.
I'm having trouble with required fields based on a previous selection.
i.e.
2a_txt_OpportunityAmount cant be blank.
IF 2a_txt_OpportunityAmount is answered "yes"
2b_txt_OpportunityAmount must be filled in also
If(IsBlank('1a_drop_CustomerName'.Selected.Value),Notify("The Federal/Public Sector Government Customer is a required field",Error)
,IsBlank('1b_drop_Corporate_Account'.Selected.Value),Notify("The Corporate Account is a required field",Error)
,IsBlank('2a_txt_OpportunityAmount'.Text),Notify("The Product Amount is a required field.",Error)
,UpdateContext({showDialog:true})
)
;
Thanks
Dave
Solved! Go to Solution.
hi @DAVIDPOWELL try
If(And(2a_txt_OpportunityAmount.Text="yes",!IsBlank(2b_txt_OpportunityAmount.Text)),true) for
2a_txt_OpportunityAmount cant be blank.
IF 2a_txt_OpportunityAmount is answered "yes"
2b_txt_OpportunityAmount must be filled in also
Further consider changing to a Switch statement
Hope this helps
hi @DAVIDPOWELL try
If(And(2a_txt_OpportunityAmount.Text="yes",!IsBlank(2b_txt_OpportunityAmount.Text)),true) for
2a_txt_OpportunityAmount cant be blank.
IF 2a_txt_OpportunityAmount is answered "yes"
2b_txt_OpportunityAmount must be filled in also
Further consider changing to a Switch statement
Hope this helps
This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.
User | Count |
---|---|
199 | |
68 | |
46 | |
36 | |
25 |
User | Count |
---|---|
239 | |
109 | |
89 | |
87 | |
66 |