Important Update: Community URLs redirect issues are partially resolved. Learn More. .

cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamically Picking field Id of a value in value list

DevanshiTiwari
Contributor II

I have a running custom code that checks whether the selected value in a value list is Yes or No. It looks something like this.

if(document.getElementById("master_DefaultContent_rts_s8197_f23201c_1").checked)

 

Based on the selected value, I am running a piece of code in custom object itself. I am looking for a way to dynamically pick the field id of value in a value list, so that package installation from one instance to another is easier.

 

Thanks in advance.

2 REPLIES 2

FaisalKhan
Contributor III

Hi  Devanshi,

Have a look at this particular article:

 

https://community.rsa.com/docs/DOC-105420