document.getElementsByName('customfield_10700').placeholder='This will appear as a placeholder';
place into custom field's description, but it didn't work at all like below:
It displayed at below the field instead of display inside the field.
Any suggest solutions to add placeholder/hint text into field?
The method you suggest is not available on cloud, only on server and DC.
If you want to achieve this you'll have to use context for this specific field and add a default value. While this is not perfect because it fill the field with a real value you don't want to keep you can also try thid other way:
Adding the 'hint' into the description of the custom field, by adding the as a specific field configuration.
Alternatively (but less clean) you can add this information into abother field (the show only field).
Hope this help!
I mean I suppose we're talking XSS scripting effectively (https://owasp.org/www-community/attacks/xss/).
In general I would say enabling this is fine, but you should probably decide that on your own.
I see, what if the field is user picker field, is it able to display placeholder text into it?
I try to enable 'Enable HTML in field descriptions and list item values' and the normal text field able to show the placeholder/hint text in the field, but unable to show for user picker field.
Thanks for all your responses and answers.
I had a discussion with our team and we decided not to enable the 'Enable HTML in field descriptions and list item values' as will impact other application.
So we will put the hint text below the field instead of inside the field as placeholder.
Once again thanks for the discussion and I'll accept this as answer.
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event