Skip to content

Conversation

prash5595
Copy link
Contributor

I added the folder code-snippets->client scripts -> Adding Placeholder on Resolution Notes

I’ve implemented a client script that adds placeholder text in the resolution notes field when the state changes to Resolved. The placeholder guides fulfillers to maintain consistency and disappears as soon as they start typing. This ensures that essential information is not missed while resolving tickets.

@snamjosh snamjosh self-assigned this Oct 28, 2024
@snamjosh
Copy link
Contributor

@prash5595 Thanks for your contribution. IS there any particular reason of using g_form.getElement() method instead of g_form.getValue() ?

@prash5595
Copy link
Contributor Author

@snamjosh Thanks for reviewing my contribution. g_form.getValue() is used to retrieves the current value of the field. In my case, I want to add the placeholder text on resolution notes not to get the value of resolution notes.

Hope it clarifies!

@snamjosh snamjosh merged commit 2724cfe into ServiceNowDevProgram:main Oct 28, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants