is it possible to get the input from a user that fill a form and create a new cms record automatically?
is it possible to get the input from a user that fill a form and use it to a link of a button, for example, the user fills a phone number and when he submitted it will take him to the link will be sms://[phone number the entered]
Yes, but you would likely need some back end logic. You could have a form submission webhook that triggers a new CMS item to be created using the CMS api. This would definitely require some development skills.
If I understand your question correctly, yes. If the place that you need to display the telephone number is on the same page as the form, then you could just get the input’s value with document.getElementById('phoneInput').value , otherwise if it’s on a second page you would probably need to pass the value over by using a URL query string like https://yoursite.com/nextpage?phone=123456789
This is custom code, so you would need to wrap it in script tags and put in somewhere in your site (like a script embed or in the page footer code).
When someone clicks the form submit button, this example function grabs the input value and prepopulates another text input with its value:
<script>
document.getElementById('submitButton').addEventListener('click', prepopulateField);
function prepopulateField() {
var phoneNumber = document.getElementById('phoneInput').value;
var newField = document.getElementById('newField');
newField.value = phoneNumber;
}
</script>
document.getElementByID('submitButton') is referencing the form submit button. You need to make sure that you set element IDs within the Webflow designer for this to work. I made a video series on setting up user auth with a Webflow site where I show how to do this, you might find it useful.
Hey guys, I am new to webflow and looking for a solution where if a person submits a form, he instantly receives a new SMS message from me.
Is there a way to do this? If yes, how?
Looks like there have been some really good suggestions so far, but…they were from some time ago. Since then there have been some easier ways of accomplishing this.
Wanted to chime in with a screencast walking through how to do exactly this with only Webflow and a free Integromat account, it’s fairly straight forward these days:
This is interesting It may be possible by changing the redirect_url returned from Integromat (in the above screencast) to that SMS link instead.
If anyone stumbles on this and gives it a try, I’d love to hear if it worked!