David Ha
ServiceNow Employee
ServiceNow Employee
In San Diego, we released an input form screen enhancement that allows admins to configure auto-fill inputs using scripts. In the example below, we show you how users can get pre-filled information as soon as they launch their input form screens.
7 Comments
Ivan Betev
Mega Sage
Mega Sage

Thanks!

Sayan Bardhan R
Tera Contributor

Great video.!!

However, I am keen to understand if there is a way to auto-populate an input variable based on another input ( analogous to typical client side callback functions we use in native ui to populate a field based on another field ). Thanks.!!

Dejan
Tera Expert

Thanks Ian and David, very useful feature!

I second Sayan's suggestion. It would be great, if there was a scripted Mobile UI Rule Action to auto-populate an input based on a change to another input field.

 

Also, a bit off topic, is the support for e-signature, carried parameters, and barcode/QR scanner input types for parameter screens on the horizon? The carried parameter is quite a big limitation.

Sean71
Tera Contributor

@David Ha This is great, thanks for sharing the video. I'm currently trying to do this exact process with an input form screen variable that is a multiselect choice list.  It works fine when the input is NOT multiselect, but I can't figure out the format to pass in for a multiselect list and can't find the info anywhere in the documentation.  Is there any way to do this?

Anish Singh
Tera Expert

@Sayan Bardhan R Did you find any solution to auto-populate an input variable based on another input?

@David Ha 

Luis Esparza
Tera Explorer

Hi, I found this post very helpful. I am trying to do the same for a Reference field, and apparently for those you have to retrieve the value in a different format. Does anyone know what the structure of this format is?

matrat5114
Tera Contributor

My understanding is that you have to return the value from your script include like this:

 

    return {
        value: groupSysId,
        displayValue: groupName
    };
},
 
value - being the sys_id of the record you are trying to return.
displayValue - being what you wish to display to the end user.
 
Could never get it to fully work though, so would love to hear others suggestions.