Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

User should not be able to select from reference lookup view

Elvin_Salim
Tera Contributor

Is it possible that user can see records from the reference field lookup view, but can not select any of them?

Elvin_Salim_0-1752751684894.png

 

5 REPLIES 5

sunil maddheshi
Tera Guru

@Elvin_Salim Not sure what is business use case but you can write on change client script, below is the example

if (g_form.getValue('your_reference_field')) {
  g_form.setValue('your_reference_field', '');
  g_form.showFieldMsg('your_reference_field', 'Selection not allowed for this field', 'error');
}

Please mark correct/helpful if this helps you!