function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Dafina BojaDafina Boja 

Do Not Contact Code

Hi all , 

I have made this code when i tick this automatically shows the flag below the field , but my problem is when i untick the do not call and refresh the page it not removed from the page.

can you please help me with the code:
IF(DO_NOT_CONTACT__c = TRUE,IMAGE("/img/samples/flag_red.gif", "Red Flag")&" "&"Do Not Contact",
IF(DoNotCall = TRUE,IMAGE("/img/samples/flag_red.gif", "Red Flag")&" "&"Do Not Call",
If(Active_Event_Attendee_Records__c >=1 , IMAGE("/img/samples/flag_red.gif", "Red Flag")&" "&"Do Not Contact",
IF(CRM_Target_Contact__c = TRUE,IMAGE("/img/samples/flag_red.gif", "Red Flag")&" "&"Do Not Contact",
""))))
 
ShirishaShirisha (Salesforce Developers) 
Hi Dafina,

Greetings!

Seems like you do not have code/formula to execute,if you unclick it.So,I would suggest you to include the logic for unclick as well which is something .like below:

If(DO_NOT_CONTACT__C=FALSE, your logic)

Kindly mark it as best answer if it helps so that it can help others in the future.

Warm Regards,
Shirisha Pathuri