Forums Forums Search & Filter Pro Split form / Output single field

Tagged: 

Viewing 10 posts - 1 through 10 (of 13 total)
  • Anonymous
    #85405

    Hello,

    is it possible to create custom form, not to display the whole form with shortcode but to split it and display single fields? I need a form where some of the fields will show instantly but some of the fields need to be grouped and hidden.

    Regards

    Trevor
    #85419

    We have been asked for this many times, so it is a feature that we will build into the major major release of the plugin (v3), but this is a few months away yet.

    Anonymous
    #85453

    You could do a lot just with an input for class for every field in edit form.

    Trevor
    #85602

    You can add classes for form elements using our Filter Input Object sf_input_object_pre filter.

    Anonymous
    #85747

    Thanks. What about modifying list elements, not inputs?

    Trevor
    #85762

    Did you look at the example given?

    https://gist.github.com/rmorse/7b59b45a14b1ca179868

    Otherwise, post what you currently see in the form, and then what you want it to look like?

    Anonymous
    #85976

    I did. OK, this is my field:

    <li class="sf-field-search data-sf-field-name="search" data-sf-field-type="search" data-sf-field-input-type="" style="visibility: visible;">
      <h4>Text search</h4>
      <label><input placeholder="" name="_sf_search[]" class="sf-input-text" type="text" value="" title="" data-cip-id="cIPJQ342845639"></label>
    </li>

    I would just like to add another class to <li> element without using JS.

    Trevor
    #85984

    This bit looks wrong?

    <li class="sf-field-search data-sf-field-name="search"

    It should be:

    <li class="sf-field-search" data-sf-field-name="search"

    Was that a typo or what you actually see in the current page? Is this the element you want to add the class to? E.g:

    <li class="sf-field-search my-new-class data-sf-field-name=”search”`

    Anonymous
    #85986

    Yes, it was a typo. Yes, that’s the element.

    Trevor
    #85990

    OK. I need to ask Ross if he can provide a code snippet.

Viewing 10 posts - 1 through 10 (of 13 total)