Today I have a problem with form contact validation.
1/ I create a new design based on ‘Agency’ template
2/ In contact section, I toggle on the SmartForm in form option, and had a valid email.
3/ All inputs are marked as ‘required’
But this last point not working.
I can submit the form leaving blank fields… except for the name
I don’t understand why ?
A last thing, why I can’t change the title of this template ?
Required fields are validated on client side. So, by chance, didn’t you listen to the click event of the submit button, then use preventDefault? If yes, this leads to bypass the default behavior and you have to provide your own inspection. If you want to still trigger the default validation and add your own process, you will instead listen to the submit event of the form.
Regarding the <title> tag in <head>, I’m using the Agency template and I was able to change it in Settings / SEO / Title.
First thanks for your reply,I was starting to despair of having one. and sorry for my english because I’m French.
So I try to explain as best I can do…
Open BSS, and select File>New Design> and chose the ‘Agency template’, then click on [Create] button.
In the ‘Overview’ panel on the left, click on the ‘vForm #ContactForm’
Next on the rigth, go to the options panel and toggle ON the smart form
chosse a valid email in Recipient
OK Now go to : ‘Settings / SEO / Title’ and change the Title as you want
Save it and publish it or preview it
THIS IS THE END
And now, you can verify
1/ You can click on the ‘SEND MESSAGE’ button leaving fields blanked. (You will have an error only if you don’t type a name, but after have posted it).
2/ Back in BSS (or not) you can see in ‘HEAD’ content that the ‘Title’ is alway ‘Home Brand’ ! not what you choosed before in SEO Settings !!!
The title home Brand is not the seo one, you need to edit it, just click on it, press enter and write the new title.
As for the fields of the email form, you need to define required or not, this is on the right side, you will have to click one by one and define required for the ones you want.
I suggest you do the tutorial, program documentation.
I can see this later for you, I’m not at the computer right now. There are two SEO in bss, one in project configuration, one in each html, right click on the html file, it will open a drop down menu, I think it’s in properties.
My explanation must have been a spectacle!
I’m Brazilian, so I Google translated from Portuguese to English, then you translated from English to French, kkk.
Sorry if something was confusing.
If you forgot to switch on Update existing Pages when you selected your language then do it again and first select not chosen then the switch will show up again then choose french and switch on the Update Existing Pages and the lang attribute will be added to the HTML tag.
Or do it your self like this
Thanks kuligposten
Because I have no switch for ‘Update existing Pages’ I change the language into “English” and I can see it now. So I swicth it on and save, then change again on French, re switch it on and save it.
Now it is Perfect !
Thanks