Hash variable construction in custom HTML

Confluence User - 23 May, 2018

I tried to construct this hash variable in custom HTML. But it displays as it is. When i tried with direct value it works.

Please help me!

var val='#form.tab_name.filed[' + this.value + ']#';

forms;html;javascript;custom;hashvariable

1


24 May, 2018
confluenceUser
1
confluenceUser

hash variable is being rendered on server side. so when server is rendering the page it doesn't know about "this.value" so it is not being able to render the hash variable. or in simple words hash variables cannot be created after page is being loaded.

RELATED QUESTIONS

Your answer


To answer a question you'll need an account.

Print