Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author Aurovrata Venet

    (@aurovrata)

    trying to create a Slider Form for our Carglass Workshop in Bavaria, Germany.

    is the slider form working? I am not able to see it on your linked page.

    I am posting screenshots, cause if I am writing it down in this mail, it would be marked as spam:

    the screenshots are not accessible, you need to set the sharing options to ‘links visible to anyone’.

    Thread Starter agsansbach

    (@agsansbach)

    Thank you for your quick resonse. The links should be visable now.
    The Slider is actually working, yes. Just some attributes keep getting overritten.

    For example:
    I was trying to hide the Section title with a class
    .nichtanzeigen {
    display: none;
    }
    The class inside the <span class=”cf7sg-title nichtanzeigen”>1. Section title</span> gets deleted after reloading/saving.

    After reloading it looks again like this:
    <span class=”cf7sg-title”>1. Section title</span>

    Same problem with the input type checkboxes.

    • This reply was modified 5 years, 3 months ago by agsansbach.
    Plugin Author Aurovrata Venet

    (@aurovrata)

    Ok, the slider form is working (I need to scroll down to the bottom of the page to see the prev/next buttons).

    So the plugin is working fine!

    The problem I am running into is, that I want to use some JavaScript to only alow one Checkbox within a group at the time.

    this is a javascript question which is unrelated to this plugin. Please ask on a Javascript forum such as StackOverflow.

    Now i wanted to add the name and onclick inside the html:

    don’t create input fields within the HTML, use the CF7 field tags instead, else the CF7 plugin will not be able to validate/process/add to notification mails your submitted values. This is not the recommended way, you really need to understand what you are doing to design forms like this.

    The onclick attribute is not allowed by the WordPress wp_kses_allowed_html post content sanitizer function by default. Again, you should be using JavaScript/JQuery to bind events on your fields rather than inserting oncliick attributes.

    Thread Starter agsansbach

    (@agsansbach)

    don’t create input fields within the HTML, use the CF7 field tags instead, else the CF7 plugin will not be able to validate/process/add to notification mails your submitted values. This is not the recommended way, you really need to understand what you are doing to design forms like this.

    The onclick attribute is not allowed by the WordPress wp_kses_allowed_html post content sanitizer function by default. Again, you should be using JavaScript/JQuery to bind events on your fields rather than inserting oncliick attributes.

    Got it thanks.

    But why can’t I just set a class for the Div

    .nichtanzeigen {
    display: none;
    }

    <div class="cf7sg-collapsible-title"><span class="cf7sg-title">1. Glasschaden angeben</span></div>

    like

    <div class="cf7sg-collapsible-title nichtsichtbar"><span class="cf7sg-title">1. Glasschaden angeben</span></div>

    It seems like it doesn’t save.

    Plugin Author Aurovrata Venet

    (@aurovrata)

    It seems like it doesn’t save.

    indeed, not on the title element as it is dynamically created when the grid UI is loaded. However, it will work if you put it on the parent element,

    
    <div class="container cf7sg-collapsible nichtsichtbar">
      <div class="cf7sg-collapsible-title"><span class="cf7sg-title">1. Glasschaden angeben</span></div>
      ...
    

    you can then target the title

    .nichtsichtbar > .cf7sg-collapsible-title{}

    Thread Starter agsansbach

    (@agsansbach)

    Thanks, that helped alot!

    Thread Starter agsansbach

    (@agsansbach)

    Ok, the slider form is working (I need to scroll down to the bottom of the page to see the prev/next buttons).

    So the plugin is working fine!

    If the first slide has more content then the other slides, it seems like the other slides are set to the hight of the first slide.

    Right now I have a big white space between the navarrows and the rest of the form (on mobile).

    Is it possible that the navarrow are fixed to the last formelement?
    (the height of the slide is related to the content in that specific slide, not fixed to the first?

    https://www.autoglas-spezialist-ansbach.de/termin-buchen/

    Thank you for your help!

    • This reply was modified 5 years, 3 months ago by agsansbach. Reason: added link to page
    • This reply was modified 5 years, 3 months ago by agsansbach.
    • This reply was modified 5 years, 3 months ago by agsansbach.
    Plugin Author Aurovrata Venet

    (@aurovrata)

    Right now I have a big white space between the navarrows and the rest of the form (on mobile).

    correct, that’s generally how slides work. if you wish to render the first slide more compact i suggest you encapsulate it into a collapsible row section, let it be open by default, but close it when the slide next button is activated, this should render the subsequent slides more compact

    Plugin Author Aurovrata Venet

    (@aurovrata)

    to dynamically control collapsible rows and slides, see the advanced section tutorials.

    alternative is to use a scrolling window in your first slide, something you can achieve using CSS

    Plugin Author Aurovrata Venet

    (@aurovrata)

    this is now resolved I gather.

Viewing 10 replies - 1 through 10 (of 10 total)

The topic ‘CF7 Grid Extention Html disapears after saving’ is closed to new replies.