cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Labraham36
Helper II
Helper II

Problem with a formula line

Hello community! I make you a query: I have a screen that is for "Add Requirements", in it I have a formula in the save icon that is:
"If (IsBlank (DateValue1) || IsBlank (DataCardValue13); UpdateContext ({Comp_Campos_Oblig: true }); SubmitForm (Form1) && Navigate ('Successful Registration Update')) ",

In turn, I have a controller field with the following formula in the item property:
" ["Pending"; "In Process"; "Testing ";" Delivered ";" OK User "]",

 

and in turn a date field. What I would need is to know through which formula I could mark that, when the user has selected the controller field in the "OK User" option, and that date field is empty and wants to save the request, and that date field is empty, a pop up will appear with a warning. The only thing not to do is to indicate in the formula the controller field selected in "OK user". This is the formula I put together, but it is not working. Mark an error in the = symbol:
If (IsBlank (DateValue1) || IsBlank (DataCardValue13); UpdateContext ({Comp_Campos_Oblig: true}); If (IsBlank (DateValue3) && DataCardValue16 = "OK User"; UpdateContext ({User_OKReminder: true}); SubmitForm (Form1) && Navigate ('Registration Update Successful')))

Any ideas?

Campo Controlador.jpgFormula Guardar.png

 

1 ACCEPTED SOLUTION

Accepted Solutions
v-xiaochen-msft
Community Support
Community Support

Hi @Labraham36 ,

 

Please try this formula:

If (IsBlank (DateValue1) || IsBlank (DataCardValue13); UpdateContext ({Comp_Campos_Oblig: true}); If (IsBlank (DateValue3) && DataCardValue16.Selected.Value = "OK User"; UpdateContext ({User_OKReminder: true}); SubmitForm (Form1) && Navigate ('Registration Update Successful')))

 

Best Regards,
Wearsky
If my post helps, then please consider Accept it as the solution to help others. Thanks.

View solution in original post

3 REPLIES 3
v-xiaochen-msft
Community Support
Community Support

Hi @Labraham36 ,

 

Please try this formula:

If (IsBlank (DateValue1) || IsBlank (DataCardValue13); UpdateContext ({Comp_Campos_Oblig: true}); If (IsBlank (DateValue3) && DataCardValue16.Selected.Value = "OK User"; UpdateContext ({User_OKReminder: true}); SubmitForm (Form1) && Navigate ('Registration Update Successful')))

 

Best Regards,
Wearsky
If my post helps, then please consider Accept it as the solution to help others. Thanks.

View solution in original post

Drrickryp
Super User II
Super User II

@v-xiaochen-msft 

One comment, I would put Navigate ('Registration Update Successful') in the OnSuccess property of the form instead of leaving it in the save icon. You wouldn't want to execute that command unless the data was successfully submitted.

 

Thanks a lot! It worked perfect!

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Power Apps June 2021

June Power Apps Community Call

Don't miss the call this month on June 16th - 8a PDT

Top Solution Authors
Top Kudoed Authors
Users online (83,758)