Call an widget when click on a button in a form

Lavanya Nagendr
Giga Guru

Hi All,

 

Requirement: When the user click on an form button which needs to invoke a widget in an pop window manner.

 

I have 2 ways to implement but i am not sure how to invoke the widget from an ui action. Kindly help me on this.

 

1. Via Service Portal

HTML:

 

<a target="_blank" ng-href="{{options.href}}" class="c-btn--secondary':!a.primary && a.form_style=='unstyled">{{data.buttonMsg}}</a>

 

SERVER SCRIPT:

 

data.buttonMsg = gs.getMessage(options.button_text || "Take Attestation");

 

 

2.Via Native Ui Action:

 

Screenshot 2023-11-20 at 6.28.48 PM.png

 

window.location.href = 'http://www.google.com';

 

 

My widget link:

 

?id=take_attestion

 

5 REPLIES 5

@Lavanya Nagendr did u find a way to invoke the widget on click of button .. was looking for something similar to invoke ooo virtual agent widget from ui action on the form.