Lock a Column When a Choice is Selected

Hello,

I have a column called Lock Status Duplicate. When they select duplicate under the Lead Status, then it locks, and they cannot change it.

if $Lead_Status == ‘Duplicate’:
return True
else:
return False

However, when the status is set to duplicate, I also want to lock these columns and don’t want them to add information under Consult Date, Intake Date, Last Followup and Next Followup.

How can I go about this?

Thank you

Have you tried creating a column access rule based on $Lead_Status_Duplicate? (Or directly based on $Lead_Status == 'Duplicate')?

I tried a quick test, and it seemed to work.

chrome_E2OyXsw5lY

Hello,

I did try that, but it does not lock.

Leads Access Rules

Okay, I got it so far, and it works.

HERE IS THE CODE

if $Lead_Status == 'Duplicate':
    return True
else:
    return False

I added the access rules.

Hope this helps someone!

1 Like