How to populate field using advanced ref qualifier

Alon Grod
Tera Expert

Is there any way to call a script include using advanced ref qualifier and actually insert a value to the reference field and not just show the list of options using return. If I want to already set the value on the field using the advanced reference qualifier without using client script

 

8 REPLIES 8

@Alon Grod Yes, instead of returning array of sys_id (multiple sys_id's), the script include should return only one sys_id and that will be auto selected in the drop down.

 

Please mark the appropriate response as correct answer and helpful.

Thanks!!

Hello @Alon Grod 

You can use setLimit(1) with While or use if Condition to return only one value which will populate on the form.

please mark the answer as helpful and correct if helped.

 

Kind Regards,

Ravi Chandra

@Ravi Chandra_K  please have a look on this example, instead that the field will already be populated with the value, the user needs to choose the value even though there is only one record. How can I insert the value so it will be displayed already inside the field without user action?

 

Screenshot 2023-07-24 at 19.54.27.png

 

Screenshot 2023-07-24 at 19.55.00.png

Screenshot 2023-07-24 at 19.55.44.png

Screenshot 2023-07-24 at 19.56.11.png