The CreatorCon Call for Content is officially open! Get started here.

How to call a Survey using a UI Action Button

Elton2
Tera Contributor

Hi everyone, how are you?!

 

I want a Search to be called by a UI Action Button (print_2), but I don't understand how to call it within the Script (print_3).

 

Script inside UI Action Button:

 

var state = current.getValue('state');

 

current.setValue('assigned_to', gs.getUserID());

 

if (current.assignment_group.getDisplayValue() == 'Oper - IN')

    current.setValue('state', '104');

else

    current.setValue('state', '105');

 

current.update();

action.setRedirectURL(current);

 

Note: Every time the user clicks on the Button, a Search will appear.

 

I looked here in the community, but I didn't find a similar question.

 

Does anyone have any suggestions?! Thank you very much

 

0 REPLIES 0