Form Values of answers and displayed text | Community
Skip to main content
Answered

Form Values of answers and displayed text

  • December 28, 2021
  • 4 replies
  • 675 views

Forum|alt.badge.img
  • Explorer
  • 6 replies

Hi,

Is there a way to set a specific value for an answer and not sending the whole Text message displayed on the answer in the form ?

 

For example:

Question: Do you like apples ?

  • Yes I like apples
  • No I like bananas

I would like that the form send the value “yes” or “no”, and not “Yes I like apples”. Or at least, something like “yes-i-like-apples”.

It is common in a lot of systems to have a difference between displayed text and form values, like in HTML elements like in “select options”.

 

Any help on that ?

Thank you !

Best answer by john.desborough

@Deka - you can use the logic rules to set the value of a variable that is passed to your crm or other bits:

 

assume that q3 has the two options “Yes I like apples” “No I like bananas”

  • create the variable in Typeform - i call it v_chioice in this example
  • in logic rules:
    • if q3 = A then replace v_choice = apples
    • if q3 = B then replace v_choice = bananas

now you can map the single word variable to the field you wish in your crm.

 

View original

4 replies

Liz
Community Team
Forum|alt.badge.img+5
  • Tech Community Advocate
  • 14862 replies
  • December 28, 2021

Hi @Deka Where are you sending the values? In an email notification? 

Additionally, how many questions are you looking to do this for? 


Forum|alt.badge.img
  • Author
  • Explorer
  • 6 replies
  • December 28, 2021

 

answers values are sent to various places like CRM, and for example may be used to fill HTML select options (need to be lowercase and without spaces like “yes-i-like-apples”, “yes”, “no”, in web dev it is a must.

In all forms around the web, there is always 2 fields to create an input, select or radio html element : text displayed and value (value need to be without spaces or any special char out of - and _)

I didn’t find a way to set a value to a form input in typeform.

 

Additionally, how many questions are you looking to do this for? 

 

more than 30 maybe near 100 soon. it is not fixed, like in HTML forms that could be easily be modified and add options value


john.desborough
Forum|alt.badge.img+6
  • Certified Partner & Champion
  • 5264 replies
  • Answer
  • December 28, 2021

@Deka - you can use the logic rules to set the value of a variable that is passed to your crm or other bits:

 

assume that q3 has the two options “Yes I like apples” “No I like bananas”

  • create the variable in Typeform - i call it v_chioice in this example
  • in logic rules:
    • if q3 = A then replace v_choice = apples
    • if q3 = B then replace v_choice = bananas

now you can map the single word variable to the field you wish in your crm.

 


Forum|alt.badge.img
  • Author
  • Explorer
  • 6 replies
  • December 30, 2021
john.desborough wrote:

@Deka - you can use the logic rules to set the value of a variable that is passed to your crm or other bits:

 

assume that q3 has the two options “Yes I like apples” “No I like bananas”

  • create the variable in Typeform - i call it v_chioice in this example
  • in logic rules:
    • if q3 = A then replace v_choice = apples
    • if q3 = B then replace v_choice = bananas

now you can map the single word variable to the field you wish in your crm.

 

 

Thank you @john.desborough for your answer, I think it is the only way to achieve this right now. Too long to do this and manage updates like that when there is a huge list of options, but it is doable at least.

:thumbsup:


Reply