Client script is working in catalog item but not in orderguide

Pravallika Rach
Tera Contributor

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 EntryPravallikaRach_0-1707332551980.png

 

For whichever catalog item you're working on - add a single line text variable called 'Phone Number'.  PravallikaRach_1-1707332552516.png

 

 

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 :

PravallikaRach_2-1707333015248.png

 

Result in Order Guide :

PravallikaRach_3-1707333135812.png

 

1 REPLY 1

Meloper
Kilo Sage

Hi,

i hope that will help.

You can add order guides instead of the Item on the order guide by configuring the related list