Configure your action item to use your grouped input UI parameters

  • Release version: Zurich
  • Updated July 31, 2025
  • 1 minute to read
  • Configure the action item on your button so that you can use the values that your users scan in.

    Before you begin

    Role required: admin

    Procedure

    1. From your grouped input record, click the reference icon (Reference icon) next to the Button field, and then click Open record to open your function record.
    2. From your function record, click the reference icon (Reference icon) next to the Action item field, and then click Open record to open your action item record.
    3. Modify the Execution Script field to use your grouped input UI parameters.

      These parameters are contained within the input object. You can access the parameters by using this format: input.grouped_input_name[input index]["UI Parameter Name"]. For example, if you have a grouped input called add_asset that has a UI parameter named Serial number, you would use input.add_asset[0]["Serial number"] to access the first serial number asset.

      In this example, the script checks the length of input.add_asset to see how many items were scanned. It then adds an asset for each scanned item using the scanned-in serial number and asset tag.

      Grouped input used in an execution script example.

      Note:
      • The action item type must be set to Script to display this Execution Script field.
      • In the above script example, the addAssetToStockroom() function is a custom function that has been created by the user. For more information, see Configure an action function.

    What to do next

    Your button is configured for multi-scan, and your users can begin creating records. For information on using the mobile scanning interface, see Multi-scan for mobile applications.