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
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,

Greetings!

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

Reference:https://help.salesforce.com/articleView?id=cl_about.htm&type=5

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:
https://www.sfdcpoint.com/salesforce/custom-label-in-visualforce-page/

How to access Custom Label in Apex class:

https://www.sfdcpoint.com/salesforce/custom-label-in-apex-code-salesforce/

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