Form Inputs - Array Value & Array label

I’m working on a form that’s launched through the launchpad then takes the inputs from the original form to input into a secondary form in a workflow. One of these inputs is an array (example below). I have no issues with String inputs as I can reference them inside the form via a “formdata” variable, but for array inputs, it requires an extra “Array Value” & “Array Label” . I’ve tried a few different types of inputs like 0 or 1 and placing text as well, but I repeatably get the error below. Can someone advise on what needs to be put into these two fields?

Array:
[“TestWritePermission”, “TestViewPermission”]

JSON:
“entitlementsREQ”: [
“TestWritePermission”,
“TestViewPermission”
]

Error:
{“displayName”:“Form”,“error”:“Unexpected Error: unable to find value to use for value field in item at index 0 with jsonpath expression ‘entitlementsREQ’, item: ‘map’”,“stepName”:“form”,“task”:“sp:forms”,“technicalName”:“Form”}

Hey @trettkowski. You should be selecting variables that will be used as data and for what will be displayed on the form and sent back to the workflow on selection. Check the documentation here.

The form inputs appear to be wanting an array of maps, not an array of strings. The “Array Value” field is for specifying the value of an attribute inside one of the maps. For example given the map below, you would put “id” in the Array Value field if you wanted the following inside the form: [“321”,“123”]

[
    {
              "id":"321",
              "value":"temporary"
    },
    {
              "id":"123",
              "value":"string"
    }
]

This is what I’m gathering after poking around for a bit, but please correct me if I’m wrong!

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.