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

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Carousel April Dunnam Updated 768x460.jpg

Urdu Hindi D365 Bootcamp

Dont miss our very own April Dunnam’s The Developer Guide to the Galaxy! Find out what the Power Platform has to offer for the traditional developer.

Top Solution Authors
Top Kudoed Authors
Users online (2,608)