Loop scenario until certain criteria is met

Hello,

I am still a bit new working with Make so still learning some of the functions.

I am building a scenario with the following logic:

  • User submits a form on Webflow website.
  • The system then creates a new CMS item for the user in the system and publishes it.
    Those steps I have already achived, and I have the following problem:

I want to re-direct the user to the newly created page, now this is not a problem but before doing that I want to make sure the CMS item/page was actually created. I don’t really understand how or if it’s possible for create a system where it would check if the item was created before proceeding to re-direct the user. Is there a way to do it?

Best,

Welcome to the Make community!

Usually for this you wouldn’t redirect the user until you’ve received a response from the form submission webhook, which you will return the newly-created page’s link.

To do this you simply need to not use Webflow’s form redirect upon successful form submission, but you need a piece of frontend JavaScript code to submit the form and wait for a response.

In that time waiting the script could also show a progress spinner or something so that the user knows to wait for a response.

Hope this helps! Let me know if there are any further questions or issues.

samliewrequest private consultation

Join the Make Fans Discord server to chat with other makers!

Thank you!

Do you have an example of how a Javascript code like that would look like? Was trying to piece it together but was running into some issues.