Skip to content

Commit 4dee5e8

Browse files
authored
Field Placeholder (#1449)
* readme.md * fieldplaceholder.js
1 parent 57000cc commit 4dee5e8

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
function onLoad() {
2+
//Type appropriate comment here, and begin script below
3+
var shortDescription = g_form.getControl("short_description");
4+
shortDescription.placeholder = "Please give the issue details here";
5+
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
Hint that appears inside an input field to indicate the type of data the user should enter.
2+
It is typically shown in a lighter font colour and disappears once the user starts typing.
3+
This helps guide users by providing an example or context without taking up additional space on the form.
4+
For example, a field placeholder in an short description input might read: "Please give the issue details here"
5+
6+
![image](https://github.com/user-attachments/assets/600d8ba7-2322-4b7f-b769-41f464082341)

0 commit comments

Comments
 (0)