difference behaviour b/w platform and in portal

nameisnani
Mega Sage

Hi Team , 

 

 

There is a difference behavior between Portal and Platform end . 

 

We have catalog called Lost/stolen device . In that based on device Type - Short description is populating .

 

For example : If i choose device type is 'Laptop' >> In short description field populating like this i.e [ Lost/Stolen Laptop reported By requestor for name

 

For this i have written client script ;

nameisnani_1-1723618930840.png

 

function onChange(control, oldValue, newValue, isLoading) {
    if (isLoading || newValue == '') {
        return;
    }

    var reqFor = g_form.getDisplayValue('requested_for');
    var newvall = g_form.getDisplayValue('device_type'); //replace with the backend name of device type field


    //g_form.setValue('short_description_1', newvall +' '+ ": Device Type " + ' ' + " Reported By " + reqFor);
    g_form.setValue('short_description_1', "Lost/Stolen " + newvall + ' ' + " Reported By " + reqFor);





}

nameisnani_0-1723618340769.png

 

 

Now , the problem I am facing that , this is working fine in portal , when we are checking from the platform , it is not working .

 

If you could see in the below screenshot , in the short description field requestor for name is not populating .

 

nameisnani_2-1723619065777.png

can anyone please help me with this issue , where i have to update in my scirpt please help me , 

 

It should work in platform level also . 

5 REPLIES 5

Your comment is not very helpful. It does not explain what and how exactly does not work.