How do I script a Condition for a mobile app function?

gjz
Giga Sage

I added a Top Menu Function Instance to the OOB Catalog Tasks record screen.  The function instance points to a function that allows the users to scan an asset and through a writeback function, the asset is added to a catalog task variable.  The function/action is on the Hardware (alm_hardware) table and not on the Catalog Tasks table. 

 

I only want the function/action to display on the catalog task based on a value in a specific catalog task variable, not for all catalog tasks.

 

Because the Function Instance is on the Catalog Task table and the Function/Action is on the Hardware table, I added a hidden variable on the catalog task so I would have something to trigger whether or not the function displays on the Catalog Task.  However, I can't figure out how to add the script to the action and need some help doing that.  The context for the function is record.

 

What is the script syntax for the Condition field that is essentially "if (ritm.variables.enable_scan == true) then function is visible"?

 

gjz_0-1794354315544.png

 

 

0 REPLIES 0