Hash variable in custom html
Confluence User - 24 Nov, 2020
Hi,
I have two fields on my form. The first one is a select box of users. The second is a read-only, of the email of the selected user from field 1.
How do I automatically fill field 2 with the email when the user is selected?
In my custom html I tried to use the username from field1 to build a hash variable but it does not work.
This works
alert("#user.john.email#");
But this does not work
var abc = "#user.".concat("john.","email#");
alert(abc);
If this was possible I would just replace "john" with the value of field 1.
forms;hashvariable