-
AuthorPosts
-
April 30, 2017 at 8:13 pm #785381
Is there a way to block the option to pick a past date in the contact form “datepicker” option?
Also, the “valid phone number” verification option, can I restrict it to 10-11 digits only?Thanks!
- This topic was modified 7 years, 7 months ago by 0_o.
May 1, 2017 at 6:56 am #785533Hey 0_o,
May you provide us your website link with these things that you mentioned in the question? The phone number validation isn`t included in our theme by default, you can request this customization job here: kriesi.at/contact/customization
Best regards,
John TorvikMay 1, 2017 at 12:28 pm #785667Hi!
The datepicker and valid phone number options are in the content form (Avia Layout Builder > Content Elements > Contact Form)
Contact Form > Add >
Element Type: Datepicker
Element Validation: Is not emptyand
Contact Form > Add >
Element Type: Text Input
Element Validation: Valid Phone NumberThe problem is, in these settings, the visitor can choose a date from the past, and type a phone number that is not 10-11 digits.
Thanks!
May 1, 2017 at 12:32 pm #785668Hi,
To disable past dates, please refer to my post here – https://kriesi.at/support/topic/disabling-past-dates-in-datepicker/#post-728483
Please feel free to request – or vote if already requested – such feature on Enfold feature request form.
Best regards,
YigitMay 1, 2017 at 12:37 pm #785669Looks perfect, thank you! is it safe to remove this line:
if ( ! defined( 'AVIA_FW' ) ) exit( 'No direct script access allowed' );
from the main enfold theme file? (unfortunately, I didn’t create a child theme, and now I have plenty of changes to the main theme…)Also another question if you don’t mind, in the contact form, at the “Autorespond Text” field, is there any shortcode I can use to include the content of the form to the visitor? (similar to the mail I get to my email when the form is sent).
Thanks!
- This reply was modified 7 years, 7 months ago by 0_o.
May 1, 2017 at 8:47 pm #785974Hi,
You can change it yes, but you will have to keep backups, when you try to do updates.
Here is how you can modify that filterlet us know if we can do anything else.
Best regards,
BasilisMay 20, 2017 at 12:35 am #796857Thanks!
Is there any way to include in the email that I receive (the admin, not the customer), the full URL, or maybe the code:
[urlparam param=”parameter” default=”word”/]
So I can see the URL parameter this visitor had?When I’m trying to include this code in the email subject field, it messes up the form…
Thanks!
May 22, 2017 at 9:44 am #797497Hi! I tried to implement the datepicker minimum date,
1. That’s the error I’m getting:Warning: require(class-form-generator.php): failed to open stream: No such file or directory in /public_html/wp-content/themes/enfold-child/functions.php on line 28 Fatal error: require(): Failed opening required 'class-form-generator.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /public_html/wp-content/themes/enfold-child/functions.php on line 28
2. Is there a way to change the date field on the visitor side from DD/MM/YYYY to MM/DD/YYYY ?
3. Also, if someone has an idea on how to add a line to my email (the email sent to the admin) with the full visitor URL (including URL parameters) or the URL parameter variable from the URL Params plugin – that would be very helpful!
BTW, the URL Params code breaks many Avia elements, not all text fields/title fields support it for some reason…
Enfold 4.0.7
Many thanks!- This reply was modified 7 years, 7 months ago by 0_o.
May 23, 2017 at 9:34 pm #798519Hi,
Can you please show us the code you have used?
I think based on your needs it is better to go ahead and try use a different plugin for the forms, example contact form 7 or Ninja Forms.Best regards,
BasilisMay 24, 2017 at 12:15 am #798624Thanks! Contact Form 7 actually has these both options built-in.
My only issue is that I can’t find a way to implement the Enfold theme CSS on the date field of the form, the rest of the fields are shown great though…Link to my test page is in the “Private Content” field.
Many thanks for all the help! your theme is awesome but your support is out of this world!
May 24, 2017 at 7:48 am #798745Hi,
I think the easiest way for the theme styles to apply to the form would be to disable or remove the stylesheet which comes with the plugin, could you try to located it and remove the code from it to see if that works?
Best regards,
RikardMay 24, 2017 at 1:31 pm #798876Hi, I couldn’t find any related CSS to this field,
– I tried to use the “inspect element” feature in Chrome
– I tried to find any mention of CSS file under plugins -> Contact Form 7 -> edit.Edit: Maybe it’s in base.css?
Thanks.
- This reply was modified 7 years, 7 months ago by 0_o.
May 25, 2017 at 5:07 am #799350Hi,
They are located in /wp-content/plugins/contact-form-7/includes/css
Best regards,
RikardMay 25, 2017 at 9:38 am #799425Hi, I changed the folder name to css-disabled and it didn’t make any difference…
May 25, 2017 at 9:16 pm #799811Hi,
Have you cleared the cache in browser and are you using any cacheing plugin?
Best regards,
VictoriaMay 26, 2017 at 9:46 pm #800399thanks, but unfortunately it’s not cached…
browser cache – I opened in Incognito
cache plugin – not using
cloudflare – wiped all cache- This reply was modified 7 years, 7 months ago by 0_o.
May 27, 2017 at 1:11 pm #800527Hi 0_o,
Can you give us temporary admin access to your website in the private content box below, so that we can have a closer look.
Best regards,
VictoriaMay 29, 2017 at 6:00 pm #801176Thanks for offering your help, the credentials are attached below.
May 29, 2017 at 6:19 pm #801180Try this in functions.php of your child theme: https://kriesi.at/support/topic/datepicker-only-allow-dates-in-the-future/#post-774083
function my_datepicker_defaults() { ?> <script type="text/javascript"> jQuery(document).ready(function(){ jQuery.datepicker.setDefaults({ minDate: 0, maxDate: "+12m" }); }); </script> <?php } add_action('wp_footer', 'my_datepicker_defaults', 20);
minDate: 0 means only future Dates are possible.
maxDate: +12m means only 12 month are available to choose from today.
Rest of explanation read on the link above (a bit brainstorming)- This reply was modified 7 years, 6 months ago by Guenni007.
May 29, 2017 at 6:39 pm #801187hm has anything changed on the form element ?
on an installation not so old: https://webers-testseite.de/kokon/flexbox/ it works like a charmEdit: it works after updating the kokon installation all works – so the other installation is corrupt.
- This reply was modified 7 years, 6 months ago by Guenni007.
May 29, 2017 at 7:38 pm #801211Hi Guenni007! Actually the “previous date” issue was fixed already with this code, it worked well on the latest Enfold,
The problem I’m facing right now is with the CSS:Thanks! Contact Form 7 actually has these both options built-in.
My only issue is that I can’t find a way to implement the Enfold theme CSS on the date field of the form, the rest of the fields are shown great though…Link to my test page is in the “Private Content” field.
Many thanks for all the help! your theme is awesome but your support is out of this world!
May 29, 2017 at 8:45 pm #801242ok – but think of that on update these entries are lost
my entries here on functions.php of child-theme do not fade away ;)btw. please show me the link – i’m a participant as you but i often find a way to solve problems
May 30, 2017 at 1:33 pm #801499Thank you :)
The problem is with the Contact Form 7 date picker design, I can’t find a way to match it to the rest of the form design.
I also implemented the Enfold form next to it, just for comparison.May 31, 2017 at 12:14 am #801718there is a CF7 Datepicker addon ! Link
to get the submit button a bit bigger will be easy
.wpcf7-form-control.wpcf7-submit { font-size: 14px; padding: 16px 50px; }
cf7 has its own field for the submit settings change it to:
[submit "Submit"]
looks a bit different – but very nearby: https://webers-testseite.de/kokon/contact-form/
- This reply was modified 7 years, 6 months ago by Guenni007.
May 31, 2017 at 12:55 am #801732and btw: read here : link
May 31, 2017 at 2:13 am #801747Perfect! thank you so much Guenni007! This plugin fixed the field design issue! :)
May 31, 2017 at 8:51 am #801882and that little plugin comes with a settings option to choose the range of date and time which is possible
June 1, 2017 at 5:33 am #802319 -
AuthorPosts
- You must be logged in to reply to this topic.