Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Set EntryViewer Dialog's Title Dynamically

Mar Demolag
Contributor
June 5, 2025

Is there a way to dynamically set the title to the EntryViewer dialog page?

For example, I want [entry.title] to be the title of the EntryViewer dialog instead of the default title set on the Form Definition.

1 answer

1 accepted

0 votes
Answer accepted
Mar Demolag
Contributor
June 8, 2025

I've tried to add the title field inside the dialog, and the following function to the "Execute Custom Javascript Function after the form is loaded" parameter, but it doesn't seem to work:

function setDialogTitle(formId){ AJS.$(`#${formId} h2#dialog-title`).text(AJS.$(`#${formId} #i_sel_title`).text()); }


Tried to put console.log there as well, and it doesn't seem like it does anything.

Mar Demolag
Contributor
June 8, 2025

Okay, after playing with it, it seems like the Execute Custome Javascript field excepts a function call and not a function name.

I was trying to put "setDialogTitle" there, when I had to put "setDialogTitle(formId)".

It works now

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events