Store value other than the display value
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-14-2017 10:33 AM
Hey guys,
Is there a way to display and store the value on a reference field other than the display value of the table it is referencing? I am currently dynamically trying to populate the Step field, based on the Job Title selection, however I want the 'Step' reference field to display the u_step field on the table instead of the name id (which is set as the display field).
This what I have on the form:
This is my script include that I am calling as reference qualifier on the step dictionary item:
var ChangeStep = Class.create();
ChangeStep.prototype = {
initialize: function() {
},
changeOptions : function() {
var stepList = ' ';
var jt = current.u_job_title;
var sl = new GlideRecord('profiles');
sl.addQuery('u_udc','position');
if(jt) {
sl.addQuery('uc_code',jt.u_it_code);
}
sl.query();
while(sl.next()) {
if (stepList.length > 0) {
stepList += (',' + sl.u_step);
}
else {
stepList = sl.u_step;
}
},
return 'u_stepIN' + stepList;
},
type: 'ChangeStep'
};
Thanks,
Raed
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-14-2017 03:04 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-14-2017 03:07 PM
have you made the u_step coulmn display "true". go to the table and mark display true for this
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-14-2017 03:10 PM
Hello Harsh,
I already have the NameID set as the display value. This reference field is being used in other forms as well, so I only want this to be changed across this particular form and not the other ones I have.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-14-2017 03:14 PM
is it ok if you create another field on form. when ever you will select nameid based on that step will populate in another field. via dot walking.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-26-2017 09:27 PM
Dear Raed,
I am facing the same issue as you, have resolved this problem now?
Thanks,
Leemey