Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to assign default values on create screen using SIL

Dennis Manacap July 15, 2019

Hi,

How to assign default values on create screen using SIL, I am trying to follow the guide on below link, but seems not working.

https://confluence.cprime.io/display/TR/Default+values+of+%28system%29+fields+on+create+screen

 

My implementation mail.sil: 

lfInstantHook({"reporter", "reporter"}, "hook.sil");
lfWatch("reporter", {"reporter"}, "hook.sil", {"change"});

Based on "reporter" I will assign values on other custom field.

The hook.sil is firing-p on Edit Screen but, it is not firing-up on Create Screen.

 

Thanks,

Dennis

 

1 answer

0 votes
Alexey Matveev
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 15, 2019

Hello,

I tried your code like this:

lfInstantHook({"reporter"}, "hook.sil");
lfWatch("reporter", {"reporter"}, "hook.sil", {"change"});

And it worked on the create screen for me. My hook.sil contains just one line:

lfDialogMessage(argv["reporter"]);

Dennis Manacap July 15, 2019

Hi @Alexey Matveev ,

Thanks for quick response, confirmed it is working from Service Desk view (Create Button), but when I tried from Customer Portal it is not firing.

Alexey Matveev
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 15, 2019

Hello,

Can you open a support ticket to the Power Scripts support?

https://jira.cprime.io/servicedesk/customer/portal/2/user/login?destination=portal%2F2

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events