+ Start a Discussion
Shubham Sinha 43Shubham Sinha 43 

Can i use custom setting in setting up the audience on Community?

I have a requirement where I need to show two different message according to the selected value of custom setting record. Like if I unchecked the record "some message" and if i checked the record "different message".  How can i do this.Please help
ShirishaShirisha (Salesforce Developers) 
Hi Shubham,


For normal messages you can use Custom Labels instead of Custom settings.


Also,in order to achieve your requirement you might need to implement a visualforce page where you need use the checkbox as input and if it is checked then display the custom label data.

How to access Custom Label in VF page:

How to access Custom Label in Apex class:


Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in the future.

Warm Regards,
Shirisha Pathuri