Client script is working in catalog item but not in orderguide
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2024 11:13 AM
I have created a phone variable in catalog item it is working as expected but when it is not working order guide as it is displaying empty blank with out any format as you refer to below images.
Can you please guide me to resolve the issue.
Thanks in Advance.
Navigate to your Service Portal's theme. | |
From the 'JS Includes' related list, Select New. | |
Submit iMask Entry |
|
For whichever catalog item you're working on - add a single line text variable called 'Phone Number'. |
|
Onload client script :
function onLoad() {
//Type appropriate comment here, and begin script below
setTimeout(function() {
var phoneMask = new IMask(top.document.getElementById('sp_formfield_phone_number'), {
mask: '(000) 000-0000',
lazy: false,
placeholderChar: " "
});
}, 100);
}
Result in Catalog item :
Result in Order Guide :
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-08-2024 04:30 AM - edited 02-08-2024 04:31 AM
Hi,
i hope that will help.
You can add order guides instead of the Item on the order guide by configuring the related list