Viewing 28 posts - 1 through 28 (of 28 total)
  • Author
    Posts
  • #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.
    #785533

    Hey 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 Torvik

    #785667

    Hi!
    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 empty

    and
    Contact Form > Add >
    Element Type: Text Input
    Element Validation: Valid Phone Number

    The 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!

    #785668

    Hi,

    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,
    Yigit

    #785669

    Looks 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.
    #785974

    Hi,

    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 filter

    https://github.com/KriesiMedia/enfold-library/blob/master/filters/avf_enfold_contact_form_custom_autoresponder.php

    let us know if we can do anything else.

    Best regards,
    Basilis

    #796857

    Thanks!
    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!

    #797497

    Hi! 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.
    #798519

    Hi,

    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,
    Basilis

    #798624

    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!

    #798745

    Hi,

    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,
    Rikard

    #798876

    Hi, 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.
    #799350

    Hi,

    They are located in /wp-content/plugins/contact-form-7/includes/css

    Best regards,
    Rikard

    #799425

    Hi, I changed the folder name to css-disabled and it didn’t make any difference…

    #799811

    Hi,

    Have you cleared the cache in browser and are you using any cacheing plugin?

    Best regards,
    Victoria

    #800399

    thanks, 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.
    #800527

    Hi 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,
    Victoria

    #801176

    Thanks for offering your help, the credentials are attached below.

    #801180

    Try 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.
    #801187

    hm has anything changed on the form element ?
    on an installation not so old: https://webers-testseite.de/kokon/flexbox/ it works like a charm

    Edit: 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.
    #801211

    Hi 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!

    #801242

    ok – 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

    #801499

    Thank 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.

    #801718

    there 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.
    #801732

    and btw: read here : link

    #801747

    Perfect! thank you so much Guenni007! This plugin fixed the field design issue! :)

    #801882

    and that little plugin comes with a settings option to choose the range of date and time which is possible

    #802319

    Hi,

    Thanks a lot for helping out as always @guenni007 :-)

    Best regards,
    Rikard

Viewing 28 posts - 1 through 28 (of 28 total)
  • You must be logged in to reply to this topic.