Set Oppo_Targetclose readonly if another checkbox fiels is not checked in a Workflow rule ?

SUGGESTED

Hi all,

I have setup a New Opportunity workflow rule with a custom field which is a checkbox, and I want the following :

  1. If the user has checked the checkbox field, he can modify the oppo_targetclose date
  2. If the user has not checked the checkbox field, the oppo_targetclose date is readonly, or he can't modify it (there's a default value which is now)

Any suggestion on where and how I could do that ?

Thanks a lot.

Parents Reply
  • 0 in reply to PPI-VDM

    Then the requirements aren't correct. If the value is not checked, the target close field is readonly, which is what the script does. If the value is checked, it will fail the condition and won't apply the read only attribute. You only want the user to be able to set the target close date when the checkbox has been ticked.

Children
  • 0 in reply to Vega

    1. This script must apply in the first workflow rule (the "new opportunity" one)

    2. When I check, the target close is not readonly and can be edited

    3. When I uncheck, the target close becomes readonly

    4. and so on... So it should be dynamic, not static once for all !