Answered

Form Values of answers and displayed text

  • 28 December 2021
  • 4 replies
  • 624 views

Userlevel 1
Badge

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 !

icon

Best answer by john.desborough 28 December 2021, 19:15

View original

4 replies

Userlevel 7
Badge +5

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

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

Userlevel 1
Badge

 

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

Userlevel 7
Badge +6

@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.

 

Userlevel 1
Badge

@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