Support » Plugin: Contact Form DB » Multi purpose form

  • Hi. This plugin works great. To solve my problem I have these questions
    1. I have one form for multiple purpose at the time of form submission some of field are filled and some remain unfilled depending on situation. I can not use shortcode to hide or show specific columns. How can I display only submitted values in CFDB table?
    2. I have hidden fields in form when I change field to “Yes” through CFDB editor it start display the CFDB table otherwise table do not show.
    3. Can I display only specific row under post ?

    • This topic was modified 5 years, 8 months ago by moni.
Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Michael Simpson

    (@msimpson)

    1. In a shortcode, you can use filter=”field1==null” or filter=”field1!=null”
    A field is “null” if there is no value.
    If you filter on “field1==null” then field1 will not display in the shortcode since none of the results have that field.
    https://cfdbplugin.com/?page_id=89#filter

    2. In a shortcode, you can filter filter=”field1==Yes” to only display those rows which have that field set to “Yes”

    3. Yes, using filter

    Thread Starter moni

    (@muneeba)

    Thank you for reply Micheal. I want to ask one thing more
    1. I have posts of multiple categories and under every post I have only one multipurpose form I wrote early. suppose I have category food and have 4 post for food items. How can I detect from which food post the form is submitted ?

    Plugin Author Michael Simpson

    (@msimpson)

    If you are using CF7 then there is a CFDB Option to capture the page URL that the form submission came from. If you are using some other form plugin then you would have to see if it provides an option to set a field based on the form location. In general CFDB can’t know where a form lives, it only knows what information the form plugin provides during a submission.

    Thread Starter moni

    (@muneeba)

    Thank You I am using contact form Now it is capturing URL.
    I am using filters in short code I want to hide “Null” Values or values with placeholder “Select”
    I used filter filter=”Pickup==null” where Pickup has no value in it. But instead of hiding it started showing where Pickup is null

    Plugin Author Michael Simpson

    (@msimpson)

    filter="Pickup!=null"

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Multi purpose form’ is closed to new replies.