
Announcements
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
hi @Anonymous 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