Expand my Community achievements bar.

SOLVED

The param"globals" using in custom functions displayed in the rule editor

Avatar

Level 1

We are working on adaptive forms based on form core components (Service pack: 6.5.21, Form version: 1.1.64). I need to write some custom functions which need "globals" as a param.

I am using the examples form the documentation: https://experienceleague.adobe.com/en/docs/experience-manager-cloud-service/content/forms/adaptive-f... 

   /**
    * resetField
    * @name  resetField
    * @Param {string} input1
    * @Param {object} field
    * @Param {scope} globals
    */
    function  resetField(field,globals)
    {

        globals.functions.reset(field);

    }

 However when I chose this function from the rule editor, the "gobals" appeared as below:

JennyLi6_0-1741697498148.png

This prevented me to save the rule.
I can't see any console errors. The custom functions works well if there is no "globals" param.
Any ideas on this?




Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Accepted Solution

Avatar

Correct answer by
Employee
2 Replies

Avatar

Correct answer by
Employee

Hi @JennyLi6 , please enable following feature toggle for using scope param : FT_FORMS-11541

Avatar

Level 1

Thanks @arunattri , it fixed the issue