UI Interaction modeless dialog - form

mypdi
Tera Expert

Hello Community,

I am using a ui interaction with a declarative action,
When the Declarative action is clicked a modeless dialog - form opens , I want to pre-populate the additional comments in the dialog , How can I achieve this using the query?

Screenshot 2026-03-31 at 1.25.46 PM.png

1 REPLY 1

VincentOL
ServiceNow Employee

I see you are prepopulating values by binding a script for `query`.

 

Try this:

function evaluateProperty(context, helpers) {
    return 'state=2^comments=This is a prefilled comment';
}

 

The "additional comments" field is most likely the "comments" field that the incident table inherits from the task table.