Doing a UI Script in Flow Designer

RuizheZ
Tera Contributor

I am currently trying to see if a UI script could be executed within flow designer. This is the test script that I am using. 

 

if (document.location.pathname == '/builder') {
    console.log("here");
}
 
However, this is never triggering despite the statement being true. Is it because UI scripts can't be executed within flow designer? 
1 ACCEPTED SOLUTION

Bhavya11
Kilo Patron

Hi @RuizheZ 

 

Unfortunately, no. There is no way to call it from a server-side script.

UI scripts are reusable client-side JavaScript similar to Script includes in server side scripts.

 

 

Please mark helpful & correct answer if it's really worthy for you.

 

Thanks,

BK

View solution in original post

1 REPLY 1

Bhavya11
Kilo Patron

Hi @RuizheZ 

 

Unfortunately, no. There is no way to call it from a server-side script.

UI scripts are reusable client-side JavaScript similar to Script includes in server side scripts.

 

 

Please mark helpful & correct answer if it's really worthy for you.

 

Thanks,

BK