Streaming live at 10am (PST)

Can i add java script function to webflow forms for validating text fields


#1

Hello All . . .

I want to validate my webflow form text fields using javascript. Is it possible ans how?

Thanks :+1:


#2

Yes, you can use a third-party plugin in Webflow.

https://github.com/jquery-validation/jquery-validation


#3

can i write my own javascript validation code in "Embed element".Will it work? how to use third party plugins?


#4

Yes, you can definitely write your own validation function in the embed code or page footer code.

This is quite a broad question. I suggest trying something first (perhaps Googling stuff and trying to put things together)?


#5

@samliew . . .is there any tutorial to use Javascript API’s that u mention in github? are they all free or paid?
TIA.


#6

Each repository has their own documentation - you could refer to those.

Mostly free with conditions. Please refer to the licensing details in the repository documentation.


#7

for eg: https://inorganik.github.io/countUp.js/
i want to embed above code in my webflow page? how do I achieve this?


#8

You can go to the github repository, then read up on which files are needed to be used, then use this for each file you need https://forum.webflow.com/t/how-to-embed-files-hosted-on-github/29281?u=samliew