• Resolved itexilion

    (@itexilion)


    Hello, i would like to ask if there is any possibility to search through form?
    I would like to build form with many selectable options in different collapsable fieldsets (like 50-100). Couldn’t find any solution to make a search box (maybe any of supported addons have this feature?)

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author codepeople

    (@codepeople)

    Hello @itexilion

    I’m sorry, but I need additional details. What do you mean by searching through the form? Please, describe the behavior you want to implement.

    Best regards.

    Thread Starter itexilion

    (@itexilion)

    Sure, long story short)
    Lest say there is a fieldset with 100 fields, it will take much time to find one, user needs, so it would be great to have a searchbox that can highlight/show/or scroll to field, user is looking for.
    Something similar you can see in this video at 4:50

    Youtube

    • This reply was modified 4 years, 5 months ago by itexilion.
    Plugin Author codepeople

    (@codepeople)

    Hello @itexilion

    I’m sorry, there is no video link in your entry.

    Best regards.

    Thread Starter itexilion

    (@itexilion)

    Sorry, now should be ok

    Plugin Author codepeople

    (@codepeople)

    Hello @itexilion

    In short, you want to hide all fields in the form except the field whose label matches the text entered by the user.

    If it is the case, you must implement this behavior as part of your form. There is no specific control for this.

    For example, assuming your fields are radio buttons, and you want all fields except those whose labels contain the text typed by the user.

    1. Insert a text field in the form (I’ll assume it is the fieldnam123).

    2. And then, insert a button field in the form with the onclick event:

    jQuery(".cff-radiobutton-field").hide();jQuery(".cff-radiobutton-field>label:contains('"+jQuery("[id*='fieldname123']").val()+"')").parent().show();

    The previous code is only an example. You should reimplement it to be used with your form’s structure.

    If you need a custom coding service you can contact me through my private website: Custom Coding Service

    Best regards.

    Thread Starter itexilion

    (@itexilion)

    I found in calculated field option to define dependencies like if value==’abc’ then show fieldnameXX it could also solve the task, but it works only with exact match, is there an operand “any” like * in windows (for example *.jpg will search all matches ending on .jpg)

    Thread Starter itexilion

    (@itexilion)

    Ok, thanks! I’ll try it)

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

The topic ‘Search in CFF’ is closed to new replies.