Question
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
Coforge
US
Last activity: 27 Sep 2016 2:20 EDT
Custom Script to Create Work in NewTab
Hi,
I have a Custom CTI popup with Insured Search Results and Capture Caller Section. When i click Accept Call button, i have to first validate input fileds and if no valdation error then i have to Call CreateWork to start work in new tab. In this case i cannot use OOB button because we cannot call CreateWork action conditinally based on validation output (Pain point with Pega7). So i have a custom script for button where i call Validation activity first and then call Script function to check Validation success and proceed.
My Question is how to call CreateWork action from Custom HTML or Java Script so that work flow initaites in New tab? is there any OOB pega rule which has such implimentation which can be referanced as example please ?