Forums › Forums › Search & Filter Pro › Split form / Output single field
Tagged: V3
- This topic has 12 replies, 2 voices, and was last updated 4 years, 1 month ago by Trevor.
-
Anonymous(Private) January 25, 2017 at 5:15 pm #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(Private) January 26, 2017 at 10:20 am #85602You can add classes for form elements using our Filter Input Object sf_input_object_pre filter.
Trevor(Private) January 26, 2017 at 3:27 pm #85762Did 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(Private) January 27, 2017 at 8:55 am #85976I 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(Private) January 27, 2017 at 9:28 am #85984This 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”` -
AuthorPosts