Kissflow DocsHelp center

Variables and parameters in app development

The input parameters are used to provide data to a field. They can be created within a page and passed from one page to another.

BasicEnterprise

Understanding variables in app development

Click here to learn about the types of variables available and how to use them in app development.

Input parameters

The input parameters are used to provide data to a field. They can be created within a page and passed from one page to another. Input parameters can be used within a page as well as passed to other pages. For example, you can pass an instance ID and activity instance ID to a process form from another process item using input parameters.

In the app builder > pages, the input parameters are found on the right side under the General properties tab ().

To create an input parameter:

  1. Click the Add button ().
  2. Enter the parameter name.
  3. Add a description to the parameter if needed.
  4. Click Add to add the new parameter. You can also edit or delete a parameter later.
     

Event parameters

These are parameters passed from an event within a component. An event parameter can be created by selecting a component, going to the Event properties tab, adding an event, and selecting the action and page for redirection.

For example, an instance ID and activity ID can be passed through an on Click event that redirects to another page.

Configuration properties

These are constants that have the same value throughout the app across different environments such as development and production. They can be set with a default value and can be changed during runtime. For example, an API key can be a config property.

Comparing variables and parameters

TypeScopeWhere can it be defined?UsageExample
Global variablesAcross all environments of the appVariables section in app builder, inside a pageJavaScript codeUser email
Local variablesPageInside a pageJavaScript codePage ID
Input parametersPageGeneral properties of the page bodyUsed across components, JavaScript codeApplication ID
Event parametersPage/app depending upon whether it is passed onEvent properties of a componentJavaScript code, passing values to input parameters of another pageInstance ID
Config propertyAcross all environments of the appInside an app, as a constantJavaScript codeAPI key

Usage in JavaScript editor

JavaScript code can be added to an event within a component by opening the code editor under the Event properties of the component and selecting the JavaScript action. Once the code editor is open, you can use global and local variables, popups, event parameters, and input parameters by double-clicking on their names to define them within the code.

In summary, variables, input parameters, event parameters, and configuration properties are all used in app development to store and pass data within the app. Each has its own scope, usage, and examples of when they might be used in a real-world app.

Adding events to dataforms

You can create events for individual dataform component in your app.

  1. Select the particular dataform in your apps page

  2. Go to the Events tab

  3. Choose an event from the drop-down menu

    • On submit

    • On save

    • On discard

    • On delete

  4. Select the action you want the event to trigger. 

    • Redirection: You can guide users to another page.

    • Pop up: Display a pop-up when an event occurs. 

    • Custom javascript actions: You can configure custom actions beyond redirection and pop-ups.

On this page