Multiple Data Sources For One Input Box

Hi,

Can the input fields on a form use more than one data binding?

For example, the first time a form is filled out, data will be pulled from Salesforce. Later on, if the response is opened to edit, the info will pull from an Airdata object.

For editing the responses, would we need to create a second version of the same form that would use the response object for the data binding?

Please let me know if more info is needed for clarification.

Thanks!

Hi!

If I understand what you’re trying to do correctly, I think you might need to create a second version of the same form. (Elements within a Web can be copy/pasted, so hopefully this won’t be too cumbersome in practice.)

An input box can only be bound to a single variable - there is no way to specify when it ought to use one variable over another.

That said, the value of individual variables can be overwritten. It is possible to define a variable from data pulled from Salesforce, and then, later in the flow, define that same variable from data pulled from an AirData Object. And if that variable was bound to an input box, any changes made to the value displayed in the input box would also change the value bound to the variable.

Does that help? If not, I think I might need to know a little bit more about the intended flow and the scope of the variables in question.

1 Like

I think you might be able to use the same form with the same data binding, you just need to essentialy overwrite the variable using a dataflow.

2 Likes

Sounds like one of the following options might work?

  1. Create the form with data binding for reloading responses, but use Set Variable to match the data binding when importing from Sales Force.
    or
  2. Use the output binding of the data flow that will import the info to match the data binding?

Do those basically achieve the same thing or would be more likely to work?

Thanks!

The second option is more efficient (and probably the “best practice”), but both options could feasible work!

1 Like