default text in Description field
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-15-2024 09:20 PM
Hi Team
when ever user selects ' Request category is ' remove ser access '. below text has to populate in description field .
How to achieve this in onchange cilent script .
NOTE - Description field where calling from Variable set .
Text :-
Exmaple text is required .
Please priovde sciript .
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-16-2024 12:04 AM
Hi @Maddysunil @Aniket Bhanse @Lkharat
I want add below text , could you please provide script
"Provide following information:
1. Name of user
2. Email address
3. Username
4. Application name
5. Environment
If you are requesting for multiple users, attach a spreadsheet with all users and the information mentioned above."
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-16-2024 12:08 AM
just update this line:
descriptionField.value = "Provide following information:\n\n1. Name of user\n2. Email address\n3. Username\n4. Application name\n5. Environment\n\nIf you are requesting for multiple users, attach a spreadsheet with all users and the information mentioned above.";
@nameisnani if it works for you could u mark my response correct/helpful
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-16-2024 12:41 AM
could you please provide me complete script ?
include this lines
descriptionField.value = "Provide following information:\n\n1. Name of user\n2. Email address\n3. Username\n4. Application name\n5. Environment\n\nIf you are requesting for multiple users, attach a spreadsheet with all users and the information mentioned above.";
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-16-2024 12:46 AM
function onChange(control, oldValue, newValue, isLoading, isTemplate) {
// Check if the 'Request Category' variable has changed to 'remove_user_access'
if (newValue == 'remove_user_access') {
// Get a reference to the 'Description' field
var descriptionField = g_form.getControl('description_1’);
// Set the desired text in the 'Description' field
descriptionField.value = "Provide following information:\n\n1. Name of user\n2. Email address\n3. Username\n4. Application name\n5. Environment\n\nIf you are requesting for multiple users, attach a spreadsheet with all users and the information mentioned above.";
} else {
// For other options, reset the 'Description' field to its default value
var descriptionField = g_form.getControl('description_1’);
descriptionField.value = '';
}
}
Kindly mark helpful/accepted if it helps you.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-16-2024 01:35 AM