FormJS: How to get a special type form variables?

Hi I am a newbee to the FormJS project, there is a question about the form variables. In my requirement, the form input data is releated with an approval process, in the form, the input “days” will be decided to forward to the different process branch. So I need to get this input “days” element to make a condition variable to make a decison. I hope the form element “days” can have an attribute to mark it as a condition type variable, so I can get all these kind of input elements and their values.

There is a method getSchemaVariables(), it only get all the variables name, without any special attribute info and input values. Hope someone can make any suggestions here. Thanks!

Hi @besley

getSchemaVariables() should return all variables necessary for the expressions inside the schema so you can request from external sources.

Is that no happening for you? Could you post an example of schema you’re using?

To retrieve special type form variables in FormJS, you can follow these steps depending on the kind of form element you are dealing with (e.g., checkboxes, radio buttons, or input fields with specific formats like dates or emails). Here’s a general approach: