Disable A record and Ensure user is not able to use it on the Form
I have an issue I need to resolve , In the App I have an admin section where the Admin users go and perform maintenance for records captured on a form in this example I will use Accident group where there can add ,edit or disable these Accident groups .
They can be Animals ,Fatigue ,Hijacking etc .
Once they select the disable button achieved by Setting the Display Mode property of the field in my example Animal to :If(Checkbox 2. Value=true,Display Mode. Disabled,Display-mode. Edit) which grays out that field.
This Accident group type : Animal is used by users on a form called vehicle incidents and its is a drop down selection .
I would like once the Admin user has ticked the check box for this item to be greyed out it cannot be edited ,
On the form drop down it must become greyed out so that user can no longer use it when they create new incidents
For previous incidents that it was used ,users can still enquire the previous incidents and see that field animal because there reports that users pull for these incidents .
How can I achieve this ?, I have also added the attachments to show my screens .
Select the disabled and is now greyed out and can be edited
Firstly, I assume this code is on the OnChange property of the drop-down - also the issue here (now that I have my mind around what you are trying to do) is not the checkbox - it is the field name in the table that the checkbox sets to true. I will call it NotShow in the below - just substitute your field name for this.
I also noticed you have said the field name in the drop-down is Accident Name - I may need a bit more clarification on this, however try this code.
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.