Change "text" to "boolean"

Post Reply
JuBaz
Member
Posts: 28
Joined: Tue Dec 07, 2021 11:41 am

Change "text" to "boolean"

Post by JuBaz »

Hi,
I have flow with an Submit Point where I want to use a drop down list with three options. I want to use the value from the drop down list as a variable in a PitStop Action List. The variable in the Action List has to be a boolean and my drop down list is text. Is there a possibility to "change" the text into a boolean that I can use in the Acton List? Are there any ideas how to create a workarround?
I have three options in the drop down list (beside some more in the flow) and i don't want to set each of them up as yes/no list because it's not that user friendly.
Thanks in advance,
Julia
User avatar
Terkelsen
Advanced member
Posts: 336
Joined: Thu Sep 08, 2011 5:08 pm
Contact:

Re: Change "text" to "boolean"

Post by Terkelsen »

You can use the app "String replace" to change the value, representing your choice in the Submit Point in the dataset, to yes or no.
freddyp
Advanced member
Posts: 1129
Joined: Thu Feb 09, 2012 3:53 pm

Re: Change "text" to "boolean"

Post by freddyp »

This is what "Rule-based variables" in Variable Sets are for. You create a variable, e.g. UserChoice, that gets the text from metadata, and you create another variable UserChoiceAsBoolean that is rule based and where you define that when UserChoice is equal to "I love it" the value is true, else it is false. In the Action List you use UserChoiceAsBoolean of course. Search in the Learn section of the website for "Smart Preflight": https://www.enfocus.com/en/learn/pitstop/all
JuBaz
Member
Posts: 28
Joined: Tue Dec 07, 2021 11:41 am

Re: Change "text" to "boolean"

Post by JuBaz »

Thanks, got it working with the rule bases variables
Post Reply