I hope that the results of the first survey will influence the next one. | Community
Skip to main content
Answered

I hope that the results of the first survey will influence the next one.


  • Explorer
  • 2 replies
I made a survey.and I want first customer's selection value is stored in a variable.Later, other customers participated in the survey, we wanted the first customer's selection value to have an effect.However, the stored variable is initialized.What should I do?

Best answer by Gabi Amaral

Hey @Eden! Thanks for your message! :blush:

There might be a solution using a combination of webhooks and APIs.

You can use webhooks to be notified of a new submission.
The webhook handler extract the data to find which option has been sent, and then update the form definition using our API.

This should work fine unless you have a lot of traffic and there is a chance that someone submits a response while it’s being updated.

There's more info about that over here:

 
Make sure to take a look at it! :wink:

View original

3 replies

Mariana
Ex–Typefomer
Forum|alt.badge.img+5
  • Ex–Typefomer
  • 679 replies
  • July 23, 2021

Hi @Eden. Welcome to the Typeform Community! :hugging:

 

I'm not completely sure I understand your use case. Do you mind sharing an example of how this would work? Once we have more understanding, we'll be in a better position to advise =)

 

Looking forward to hearing from you! 


  • Author
  • Explorer
  • 2 replies
  • July 24, 2021

I choose event products to a large number of customers.

I want to make a survey.

 

 There are many types of event products and limited inventory per product.

 

 If the customer selected event product,out of stock,

The option should be deactivated for other customers.

 

 What should I do?

 

https://xkss7gz9j0d.typeform.com/to/Pc9060iR


Gabi Amaral
Ex–Typefomer
Forum|alt.badge.img+5
  • Ex–Typefomer
  • 1779 replies
  • Answer
  • July 29, 2021

Hey @Eden! Thanks for your message! :blush:

There might be a solution using a combination of webhooks and APIs.

You can use webhooks to be notified of a new submission.
The webhook handler extract the data to find which option has been sent, and then update the form definition using our API.

This should work fine unless you have a lot of traffic and there is a chance that someone submits a response while it’s being updated.

There's more info about that over here:

 
Make sure to take a look at it! :wink:


Reply