Skip to content

Commit 58142a8

Browse files
committed
Added Email Validation String
1 parent 03b02ef commit 58142a8

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

language/en-GB/en-GB.mod_jdsimplecontactform.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ MOD_JDSCF_CSS_DESC=""
9494
MOD_JDSCF_IPADDR_LBL="Include IP Address"
9595
MOD_JDSCF_IPADDR_DESC="Collects IP address of the user and include it in the email received by the admin."
9696

97+
MOD_JDSCF_EMAIL_REQUIRED_ERROR="This value should be a valid email."
9798
MOD_JDSCF_REQUIRED_ERROR="%s is required."
9899
MOD_JDSCF_NUMBER_MIN_LENGTH_ERROR="%s should have %s characters or more."
99100
MOD_JDSCF_NUMBER_MAX_LENGTH_ERROR="%s should have %s characters or fewer."

tmpl/default.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
<p class="jd-simple-contact-description card-subtitle mb-2 text-muted"><?php echo JText::_($description); ?></p>
3838
<?php } ?>
3939
</div>
40-
<form method="POST" action="<?php echo JURI::root(); ?>index.php?option=com_ajax&module=jdsimplecontactform&format=json&method=submit" data-parsley-validate data-parsley-errors-wrapper="<ul class='text-danger list-unstyled mt-2 small'></ul>" data-parsley-error-class="border-danger" data-parsley-success-class="border-success" id="simple-contact-form-<?php echo $module->id; ?>" enctype="multipart/form-data">
40+
<form method="POST" action="<?php echo JURI::root(); ?>index.php?option=com_ajax&module=jdsimplecontactform&format=json&method=submit" data-parsley-type-message="<?php echo JText::_("MOD_JDSCF_EMAIL_REQUIRED_ERROR"); ?>" data-parsley-validate data-parsley-errors-wrapper="<ul class='text-danger list-unstyled mt-2 small'></ul>" data-parsley-error-class="border-danger" data-parsley-success-class="border-success" id="simple-contact-form-<?php echo $module->id; ?>" enctype="multipart/form-data">
4141
<div class="jdscf-row">
4242
<?php
4343
ModJDSimpleContactFormHelper::renderForm($params, $module);

0 commit comments

Comments
 (0)