cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
UmerJaved
Helper III
Helper III

Canvas App execute multiple expressions if condition true

Hi all,

 

I have got an expression to evaluate onVisible of screen before I allow user entry on the form. I need to validate if expression is false then I need to display a notification as well as set a variable to false which in turn should hide submit button.

 

Now If the expression result is true, the notification is working fine however submit button is still visible means user could still click it and submit the record. In summary "submitVisible=false" not working whereas I have also tried directly setting the Submit button visible property to false but still no luck.

 

UmerJaved_0-1643144124318.png

 

Any idea please?

Thanks

1 ACCEPTED SOLUTION

Accepted Solutions
timl
Super User
Super User

@UmerJaved 

If you want to set submitVisible to false, instead of writing submitVisible=false, the correct syntax would be:

UpdateContext({submitVisible:false})

 

View solution in original post

2 REPLIES 2
timl
Super User
Super User

@UmerJaved 

If you want to set submitVisible to false, instead of writing submitVisible=false, the correct syntax would be:

UpdateContext({submitVisible:false})

 

Thanks @timl this solved the issue.

Helpful resources

Announcements
PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

Top Solution Authors
Top Kudoed Authors
Users online (3,084)