The CreatorCon Call for Content is officially open! Get started here.

client script

shivaadapa
Tera Expert

Hi

if i select one value from reference field then the two fields in the refrence field table values should be populate in the present table two fields. How can i achieve this?

 

11 REPLIES 11

Why? This is exactly what you are describing you want: get the referenced record and put values from there on your form. Why don't ýou want to use 'getReference'?

 


Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark

Hi @Mark Manders 

I want to auto populate the two field values(which are present in the reference field table) when i select a value in the reference field.

@shivaadapa , do you want to populate some string fields?

 

why can’t you use get reference then? if you want different approach we can go with script include and client script using glide ajax

let me know if you need any help 

Please mark this as helpful and accept as a solution if this resolves your Ask.
Regards,

Shyamkumar

@shivaadapa ,Thanks for marking this as helpful, please accept the solution if it worked for you and close the thread so this benefits others 

Regards,

Shyamkumar

 

Please mark this as helpful and accept as a solution if this resolves your Ask.
Regards,

Shyamkumar

@shivaadapa  , Check this Approach 

https://www.servicenow.com/community/developer-articles/return-caller-s-details-in-incident-form-usi...

 

Regards,

Shyamkumar

 

Please mark this as helpful and accept as a solution if this resolves your Ask.
Regards,

Shyamkumar