Passing variable from form widget to a field in modal.

KaranvirS
Tera Contributor

Hi guys, 

I have a development issue in our servicenow instance. 

I have a widget called hms_form which is based on SN's form widget. It has a field called 'number': 

KaranvirS_0-1741613618412.png

I have customised the widget so that it contains a button called 'Opprett Tiltak' (Create Measures in English), this button when clicked opens another customised instance of the form widget as a modal page (called opprett_tiltak_modal): 

KaranvirS_1-1741613774243.png

I would like the field HMS Referanse (technical name of hms_referanse) to be autopopulated by the value of the number field in hms_form . Any tips and suggestions will be greatly appreciated.

 

Thanks in advance,

Karanvir

0 REPLIES 0