APIs & Integrations

APlennevaux
参加者

Validation message should not be displayed by default

解決

We have a single "required" email field newsletter subscription form.

https://www.apptweak.com/en/aso-blog

Right now, the "Please complete this required field." validation message is displayed by default, whether the user has chosen to use the form or not.

 

How can I change the behaviour of the form in order that the message only appears on the  onkeyup event of the email input field ?

0 いいね!
1件の承認済みベストアンサー
stefen
解決策
キーアドバイザー | Solutions Partner
キーアドバイザー | Solutions Partner

Validation message should not be displayed by default

解決

@APlennevaux that only happens after a change to the input occurs. You probably have an email validation script running that is changing the value of that input which is triggering the HubSpot validation script to show that message. Do you have any global scripts validating emails on your site?

Stefen Phelps, Community Champion, Kelp Web Developer

元の投稿で解決策を見る

4件の返信
stefen
解決策
キーアドバイザー | Solutions Partner
キーアドバイザー | Solutions Partner

Validation message should not be displayed by default

解決

@APlennevaux that only happens after a change to the input occurs. You probably have an email validation script running that is changing the value of that input which is triggering the HubSpot validation script to show that message. Do you have any global scripts validating emails on your site?

Stefen Phelps, Community Champion, Kelp Web Developer
Jaycee_Lewis
コミュニティーマネージャー
コミュニティーマネージャー

Validation message should not be displayed by default

解決

Thank you, @stefen 🙌

linkedin

Jaycee Lewis

Developer Community Manager

Community | HubSpot

0 いいね!
APlennevaux
参加者

Validation message should not be displayed by default

解決

Thank you, that was exactly that! There was leftover code from our previous contact form that was interfering. Thank you!

 

0 いいね!
Jaycee_Lewis
コミュニティーマネージャー
コミュニティーマネージャー

Validation message should not be displayed by default

解決

Hi, @APlennevaux 👋 Thanks for reaching out! Hey, @Teun @stefen, can you lend any insight or experience here? Thank you! — Jaycee

linkedin

Jaycee Lewis

Developer Community Manager

Community | HubSpot

0 いいね!