How to distinguish the input/output of multiple text inputs?

Post your questions and help other users.

Moderator: Martin

Post Reply
zerodean
Posts: 4
Joined: 13 May 2017 17:43

How to distinguish the input/output of multiple text inputs?

Post by zerodean » 14 May 2017 18:59

I know that a single text input defaults the output to "value".

What I don't know is how to create multiple text input dialogs in the same flow and have that data go where I want it to. If I could find an example flow that does this, I'd reverse engineer it to figure out how to do what I want. I'm sure it's pretty simple, but I'm not a programmer. So any assistance would be appreciated.

Basically, I want to create a flow that does this:

1. Ask user the quantity of an item (value 1)
- user inputs value 1

2. Ask user the measurement of that value (gallons, calories, whatever) (value 2)
- user inputs value 2

3. Ask user for additional notes (value 3)
- user inputs value 3

From there, I will output value 1, value 2, and value 3 to a file (in this case, I append those values to a google spreadsheet).

This is the simple version of what I want to do.

...

Eventually, I want to create a more advanced version of this flow where:

A. The input for value 1 defaults to numeric input (for a quantity)
B. The input for value 2 is a multiple choice input (various measurements)

But I can probably figure those out. I'm mainly just trying to figure out how to input/output multiple text input values in the same flow.

Thanks for any help. :)

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: How to distinguish the input/output of multiple text inp

Post by Martin » 14 May 2017 19:11

Hi,

You can use an action Script to assign the value to another variable. The flow could look like this:

...
-action Input Dialog: ...
-action Script: quantity = value;
-action Input Dialog: ...
-action Script: unit = value;
-action Input Dialog: ...
-action Script: notes = value;
-action Notification on Screen: {quantity} {unit} {notes}

Regards,
Martin

zerodean
Posts: 4
Joined: 13 May 2017 17:43

Re: How to distinguish the input/output of multiple text inp

Post by zerodean » 15 May 2017 00:07

Thank you so much! :D With your help, I was able to piece together a flow that I'm happy with.

I'm linking to a modified version below (I tried attaching the flow but it got rejected). It's nothing special, but it might be a good for reference for anyone who ends up finding this thread looking for help.

[My version of the flow uses an HTTP POST command to append the data to individual columns of a google sheet.]

https://www.dropbox.com/s/35mmxg442sua8 ... 1.xml?dl=0

Post Reply