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

Use script include in a condition field Help

yoli1
Tera Contributor
Hello Team  
how can i transfer my condition to a script include and then calling the script include from the condition Field
 
10 REPLIES 10

Execute the condition on the background script:
gs.info(new test().testing())

paste here the result.

this is the condition that you need. forget everything that I said.

 

!ListProperties.isRelatedList() && !ListProperties.isRefList() && (ListProperties.getTable() != "sys_user" || gs.hasRole("admin")==true)

 

I tested here and worked.

 

JimMarciano_0-1694826879541.png

JimMarciano_1-1694826897292.png

 

JimMarciano
Tera Contributor

Forget my previous messages.

This is the correct condition to be added on the condition field

!ListProperties.isRelatedList() && !ListProperties.isRefList() && (ListProperties.getTable() != "sys_user" || gs.hasRole("admin")==true)

Hi @JimMarciano I'am trying to write a bigger condition and the condition field doesn't fit my condition that's why i thought of creating a script include can you help please