Your Cart is currently empty!
Product update
Coupon
add
Coupon code invalid! Please re-enter!
AJAX loader
You are here: HomeForum
Welcome, Guest
  • Page:
  • 1

TOPIC: Hide filed

Hide filed 7 years, 7 months ago #32780

Hi I'm using sj_urline template and I'm using sj contact ajax, I would like to hide the date field in the form but I didn't find where I can hide this filed.

prnt.sc/ey5157

Can you help me ?

Thanks
Andrea

Re: Hide filed 7 years, 7 months ago #32784

Dear adolcini

You can remove this field in: sj_urline\html\mod_sj_contact_ajax\default.php
and find, remove the code:

<div class="el-control">
<label for="cainput_date"><?php echo JText::_('DATE_LABEL'); ?></label>
<input type="text" autocomplete="off" name="cainput_date" class="el-input" id="cainput_date"
placeholder="<?php echo JText::_('DATE_LABEL'); ?>">
<span class="ca-tooltip" title="" data-toggle="tooltip"
data-original-title="<?php echo JText::_('DATE_ERROR'); ?>">
<i class="icon-exclamation-sign el-error"></i>
</span>
<i class="icon-ok-sign el-ok"></i>
</div>

Thanks
The following user(s) said Thank You: braciam

Re: Hide filed 7 years, 2 months ago #34285

And what I need remove from default_js.php?

Message not send!
Last Edit: 7 years, 2 months ago by drfoxg.

Re: Hide filed 7 years, 1 month ago #34303

Dear adolcini

please go to sj_urline\html\mod_sj_contact_ajax\default_js.php and find the code below, then remove:

var $date = $('#cainput_date', $element);

and find

case "date":
var dtRegex = new RegExp(/\b\d{1,2}[\/-]\d{1,2}[\/-]\d{4}\b/);
if (!dtRegex.test(value)) {
result.valid = false;
result.mes = "Please enter a valid date!";
}
saveValidationState(input, result.valid);
showValidationMessage(input, result);
break;

and find:

var dateValid = $date.data("validated");

and find: prntscr.com/gpclkh
prntscr.com/gpclso
prntscr.com/gpclyf
prntscr.com/gpcm3o
prntscr.com/gpcm7a
prntscr.com/gpcmcr
  • Page:
  • 1
Time to create page: 0.22 seconds

Notification

Please find your issue via Suggested Posts before submitting your question. We have solved the most of issues and maybe your issue was solved before.

Latest My Topics

No posts to display.

Love all our templates?

Join our membership clubs starting at $49 only for access to all of our templates

Join Now
Home Pricing
Your Cart is currently empty!
Product update
Coupon
add
Coupon code invalid! Please re-enter!
AJAX loader
SearchSupport
Magento Themes Magento Extensions Free Magento Extensions Prestashop Themes Prestashop Modules Magento 2 Themes