Not Editable if field is SAVED with specific value

I have a Status field with 3 values:

  1. Pending
  2. In Process
  3. Completed

The field is editable, but once the record has been SAVED with Status = โ€œCompletedโ€ the status field can NOT be editable any more.

The issue I am having for now is that if when editing the Status field I select (no saving yet) โ€œCompletedโ€ than I can Not edit it again:

Solved Solved
0 4 767
1 ACCEPTED SOLUTION

Another workaroundโ€ฆ NOT(LOOKUP([_THISROW].[ID],โ€œTableNameโ€,โ€œIDโ€,โ€œStatusโ€)=โ€œCompletedโ€) in Editable? option will do that job because you havenโ€™t saved that value yet.

View solution in original post

4 REPLIES 4

I understand from where your headache is coming from. Alternative workaround.

There are few possible workaround, but this is a workaround it came up with in my mind.
First you creat physical field, called LockOrUnlock and default value is set to โ€œUnlockโ€ through initial setting. And always hide this field from any view.

Create action set this field value to โ€œLockโ€.

Create workflow to fire this action only on the condition of

and(
[_thisrow_before].[Status]<> [_thisrow_after].[Status],
[_thisrow_after].[Status]=โ€œCompleteโ€
)

For status field, set up editif condition, only it is editable when LockOrUnlock field value is โ€œUnlockโ€

Another workaroundโ€ฆ NOT(LOOKUP([_THISROW].[ID],โ€œTableNameโ€,โ€œIDโ€,โ€œStatusโ€)=โ€œCompletedโ€) in Editable? option will do that job because you havenโ€™t saved that value yet.

I just tried that and it worked Perfectly! Thanks a lot, @Aleksi

also thank you @tsuji_koichi for always taking time to help the community!

Youโ€™re welcome

Top Labels in this Space