Hello Rafik,
The reason is that you need to add a specific class to your field(s), because the default
.FormPanel input[type=text]
is very general, so it's adding a text
"Your e-mail" into all text input fields.
To add another field with a custom text you will need to add a CSS class to your field via
CMS Desk -> Tools -> (Biz)Forms -> Edit your form (General question) -> Fields tab
-> then click on the button "
Switch to advanced mode"
-> CSS Styles -> Control CSS class -> Add your class "name" e.g. (myClass)
Then in the script you can simply add this field with custom class in the following way:
form(".FormPanel input[type=text]", "Your e-mail");
form(".FormPanel textarea", "Your message");
form(".FormPanel input.myClass[type=text]", "My custom text");
Best regards,
Martin Danko