How to insert email and re-enter email field in the contact form

A12 Web Studio
41 Posts
A12 Web Studio posted this 01 June 2023
Ask a Question

Hi, I want to create a form with the possibility to insert an email and re-enter an email, and if the 2 inputs are different the form cannot submit.

it is possible?

it is possible to change the text of the submit button? from "Submit" to "Invia" or other?

Hi, I want to create a form with the possibility to insert an email and re-enter an email, and if the 2 inputs are different the form cannot submit. it is possible? it is possible to change the text of the submit button? from "Submit" to "Invia" or other?
Vote to pay developers attention to this features or issue.
3 Replies
Order By: Standard | Newest
Support Team
Support Team posted this 05 June 2023

Hi Nancy,

Custom js can be added under the Page Settings >> HTML >> additional HEAD HTML.
Please let us know if you have any further questions.
...................................................
Sincerely,
Olivia
Nicepage Support Team

Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1
Follow us on Facebook: http://facebook.com/nicepageapp

Hi Nancy, Custom js can be added under the Page Settings >> HTML >> additional HEAD HTML. Please let us know if you have any further questions. ................................................... Sincerely, Olivia Nicepage Support Team Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1 Follow us on Facebook: http://facebook.com/nicepageapp
A12 Web Studio
41 Posts
A12 Web Studio posted this 03 June 2023

Ok,
I will add it with javascript, it is possible? If yes how.

I have two fields

and this is the javascript

function CompareFields(f1, f2, caseinsensitive)
{
var val1 = document.getElementById(f1).value;
var val2 = document.getElementById(f2).value;
if( caseinsensitive )
{

  val1 = val1.toUpperCase();
  val2 = val2.toUpperCase();

}
val1 = val1.replace(/^\s*/,"");
val1 = val1.replace(/\s*$/,"");
if( val1.length == 0 ) { return; }
val2 = val2.replace(/^\s*/,"");
val2 = val2.replace(/\s*$/,"");
if( val2.length == 0 ) { return; }
if( val1 == val2 ) { return; }

alert("The form fields need to be identical.");
}

but how can I insert these into the form?

Thanks
Nancy

Ok, I will add it with javascript, it is possible? If yes how. **I have two fields** **and this is the javascript** function CompareFields(f1, f2, caseinsensitive) { var val1 = document.getElementById(f1).value; var val2 = document.getElementById(f2).value; if( caseinsensitive ) { val1 = val1.toUpperCase(); val2 = val2.toUpperCase(); } val1 = val1.replace(/^\s*/,""); val1 = val1.replace(/\s*$/,""); if( val1.length == 0 ) { return; } val2 = val2.replace(/^\s*/,""); val2 = val2.replace(/\s*$/,""); if( val2.length == 0 ) { return; } if( val1 == val2 ) { return; } alert("The form fields need to be identical."); } but how can I insert these into the form? Thanks Nancy
Support Team
Support Team posted this 02 June 2023

Hello Nancy,

You can add an HTML element Form in Nicepage. There you can define the fields to add to the form and their type. Jorm into the search field to add a form. Then you may adjust the form. For example, you may add two fields of Email type, for this just click on Add field button on the right panel and then choose Email in the list.

The functionality to compare the two emails in the form should be added separately. here are a few options for this. For example, you may find or create a script that would do this. If you use Wordpress or Joomla, you may use functionality provided by your CMS. A script for any custom form, for example, in your case, a registration form, can also be linked using the URL option. The form itself provides data to be used later by the script.

You can change the text for the Submit button by double-clicking the text on the button and editing it.
...................................................
Sincerely,
Ashley C.
Nicepage Support Team

Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1
Follow us on Facebook: http://facebook.com/nicepageapp

Hello Nancy, You can add an HTML element Form in Nicepage. There you can define the fields to add to the form and their type. Jorm into the search field to add a form. Then you may adjust the form. For example, you may add two fields of Email type, for this just click on Add field button on the right panel and then choose Email in the list. The functionality to compare the two emails in the form should be added separately. here are a few options for this. For example, you may find or create a script that would do this. If you use Wordpress or Joomla, you may use functionality provided by your CMS. A script for any custom form, for example, in your case, a registration form, can also be linked using the URL option. The form itself provides data to be used later by the script. You can change the text for the Submit button by double-clicking the text on the button and editing it. ................................................... Sincerely, Ashley C. Nicepage Support Team Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1 Follow us on Facebook: http://facebook.com/nicepageapp

Last edited 02 June 2023 by Support Team

You must log in or register to leave comments