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
Rohit B ☁Rohit B ☁ 

Can I utilize custom setting in the URL creation on the custom button?

I'm having a custom button on a custom object. On the click of this button I want to open a new record creation page of another custom object and I want to pre-populate some fields. To populate these fields I need to pass the field id (layout one) and the value which I want to populate. I've the value and it is passing correctly but field id that I need to pass in the URL is in Custom Setting.
I'm not able to utilize the custom setting directly in the URL creation of this custom button. Is there any direct approach to do this through custom setting or I've to switch to JS for this?

Any thoughts?

Thanks in advance!
NagendraNagendra (Salesforce Developers) 
Hi Rohit,

May I suggest you please check with below link from the success community.

https://developer.salesforce.com/forums/?id=906F00000008z8PIAQ

Regards,
Nagendra.