- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-12-2024 05:08 AM - edited 02-12-2024 05:10 AM
I tried adding the following catalog client script, but it changes only the value and not the question.
function onLoad() {
g_form.getControl('new_email').setAttribute('style', 'font-weight: bold');
}
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-13-2024 05:24 AM - edited 02-13-2024 05:24 AM
Hey @vidhya_mouli ,
I have it working perfectly fine with the configurations I specified in my answer. Double-check the code and your script configuration. I can see in your code that you don't have the 'label' tag after the variable name in the jQuery. You need to specify 'label' afterward.
// a_variable is the name value for the variable label you want to set to bold.
setTimeout(function() {
// Dont forget to add the "label" attribute after your variable name. My variable name is a_variable and I add a space and label after it. You need to do the same.
this.$('#a_variable label').css('font-weight', 'bold');
}, 200);
Also, make sure:
- You set 'Isolate Script' to FALSE on your Catalog Client Script
- You set the UI Type to Portal or All (Preferably Mobile/Portal)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-12-2024 07:03 AM
Just to be clear - this is just for the Portal.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-12-2024 11:52 PM
This is my code, but it is still not working. Hope I am using it correctly:
function onLoad() {
setTimeout(function() {
this.$('#new_email').css('font-weight','bold');
}, 200);
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-13-2024 05:24 AM - edited 02-13-2024 05:24 AM
Hey @vidhya_mouli ,
I have it working perfectly fine with the configurations I specified in my answer. Double-check the code and your script configuration. I can see in your code that you don't have the 'label' tag after the variable name in the jQuery. You need to specify 'label' afterward.
// a_variable is the name value for the variable label you want to set to bold.
setTimeout(function() {
// Dont forget to add the "label" attribute after your variable name. My variable name is a_variable and I add a space and label after it. You need to do the same.
this.$('#a_variable label').css('font-weight', 'bold');
}, 200);
Also, make sure:
- You set 'Isolate Script' to FALSE on your Catalog Client Script
- You set the UI Type to Portal or All (Preferably Mobile/Portal)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-13-2024 05:42 AM - edited 02-13-2024 05:43 AM
Thank you for your time.
I did exactly as you mentioned. However, it is still not working. I am working on Vancouver (not sure if that makes any difference).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-13-2024 05:46 AM
Hey @vidhya_mouli ,
Test the item in the Service Portal. The screenshot of the item you have posted is from the Platform UI, not the Portal. You mentioned in one of your other replies that you were looking to do this in the Portal, not Platform UI.
Thanks,
Ethan