how to know the backend value of choice field on "state" field

saahilkumar
Tera Contributor

Hi All

1 ACCEPTED SOLUTION

shloke04
Kilo Patron

Hi Saahil,



I think it's a duplicate thread for your query. I have already give a response to your query on your below thread. Please refer the same and close both of the thread, as it would be good for others:



how to know the backend value of choice values on "state" field



Hope this helps.Mark the answer as correct/helpful based on impact.



Regards,


Shloke


Hope this helps. Please mark the answer as correct/helpful based on impact.

Regards,
Shloke

View solution in original post

4 REPLIES 4

nayanawadhiya1
Kilo Sage

Hello Saahil,



Just navigate to the Configure Dictionary by right clicking over state field.


After that you can see the list of choices under related list with the their values and labels.


jagarnathn
Tera Expert

Using script you can get both label and choice value.



Label:


var gr1= new GlideRecord('incident');


gr1.get('74ca7fd0db0bb600549ff00fbf96190c');


gs.print(gr1.state.getChoiceValue());



Value:


var gr1= new GlideRecord('incident');


gr1.get('74ca7fd0db0bb600549ff00fbf96190c');


gs.print(gr1.state);


shloke04
Kilo Patron

Hi Saahil,



I think it's a duplicate thread for your query. I have already give a response to your query on your below thread. Please refer the same and close both of the thread, as it would be good for others:



how to know the backend value of choice values on "state" field



Hope this helps.Mark the answer as correct/helpful based on impact.



Regards,


Shloke


Hope this helps. Please mark the answer as correct/helpful based on impact.

Regards,
Shloke

Hi Shloke,



I was going through the images you attached on the other thread. While opening one of the images, all of a sudden the instance went off, the next thing I know is that the current duplicate thread was created. Anyways, as both you and regina were correct in assisting me. I ll mark both of your guys answers as correct alternately between the 2 threads



Thanks a ton for your assistance