cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Teresa24486
Helper V
Helper V

Locking fields with business rules not working

hi,

i have set my conditions on the business rules to lock fields after data is input; it doesnt work on the form after form save, can you suggest an alternative?

@EricRegnier 

 

Teresa24486_0-1604238199781.png

 

2 ACCEPTED SOLUTIONS

Accepted Solutions

Then it most likely has to do with the logic. Another business rule can also run into conflict with that one which unlocks the fields. Can you ensure no other business rules are activate on the entity (and/or form) and test if that works? Also, can you share a screenshot of the whole business rule including the bottom right thumbnail?

View solution in original post

Strange that the lock/unlock doesnt work for business rules, had to go thru a bpf ,it locks the fields but does not grey out or show a locked icon so ppl dont try to edit the field knowingly. Also, we still will be able to edit the form after save until the workflow runs. Hope you got the scenario.

View solution in original post

8 REPLIES 8
HSheild
Super User
Super User

Hi @Teresa24486 

 

Do you have all of the fields that you refer to in your business rule definition on the form? If there are fields in the business rule that are not on the form then the business rule will not work.

Yes, all fields are on the form. Lock works on just one field on the same form.

Hi @Teresa24486,

Also what scope did you set the business rule? It might be set on a form that you are not using. Select "All Forms" if that's not selected. Make sure you save all and activate the business rule. Once saved and activated, go back to your form and hit CTRL+F5.

 

Small tip: it might help to debug and understand the logic if you name all the conditions and actions in your business rule 🙂

Hope this helps...

Hi Eric,

the form is set to Entity scope; do i still have to set to All forms scope? Is it something to do with the Editable grid that i have on my form?

Teresa24486_0-1604295914242.png

 

Entity scope will work as well on the all forms. Business rule are also supposed to work with editable grids.

Just to confirm you have activated the rule right?

Yes, activated, published and everything many times on the form; still doesnt lock; only one field gets locked and the rest is unlocked.

 

 

Then it most likely has to do with the logic. Another business rule can also run into conflict with that one which unlocks the fields. Can you ensure no other business rules are activate on the entity (and/or form) and test if that works? Also, can you share a screenshot of the whole business rule including the bottom right thumbnail?

View solution in original post

Strange that the lock/unlock doesnt work for business rules, had to go thru a bpf ,it locks the fields but does not grey out or show a locked icon so ppl dont try to edit the field knowingly. Also, we still will be able to edit the form after save until the workflow runs. Hope you got the scenario.

View solution in original post

Helpful resources

Announcements
User Groups Public Preview

Join us for our User Group Public Preview!

Power Apps User Groups are coming! Make sure you’re among the first to know when user groups go live for public preview.

Power Apps Community Call

Monthly Power Apps Community Call

Did you miss the call?? Check out the Power Apps Community Call here!

Power Platform ISV STudio

Power Platform ISV Studio

ISV Studio is the go-to Power Platform destination for ISV’s to monitor & manage applications post-AppSource publish.

Users online (29,423)