• Hi there,

    I have just installed this plugin and am using it on a job listing site.

    I have contact form 7 set to capture page title and page url

    I’m currently using this shortcode and it works great: [cfdb-table form=”Contact form 1″ show=”Submitted,Interviews,Comments”]

    also I’m using this shortcode to add a count [cfdb-value form=”Contact form 1″ function=”count” filter=”Interviews=Campus Visit”]

    Is there a way to filter the output based on the current page being viewed by the user on the front end. i.e. only display results if the page url being viewed is the same as the one captured by contact form 7?

    So in effect as a job listing is created, a table is generated that shows only results relating to THAT listing URL or Title is shown… Essentially saving me having to create a whole new shortcode or form everytime somebody posts a new job?

    I hope this makes sense

    many thanks in advance!!!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Michael Simpson

    (@msimpson)

    In the CFDB Options for CF7, there is an option to capture the form page URL that you can turn on. You can use that in a filter.

    Thread Starter blkfox

    (@blkfox)

    Many thanks for your reply!!!

    Any help on how at all? I’ve been fiddling with shortcodes all night – would you know or know where I could find that filter at all?

    Happy to donate for your troubles!

    Thanks again

    Thread Starter blkfox

    (@blkfox)

    SOrry just to be clear – I am capturing the page url it’s just the filter I need help with…

    Thanks!

    Thread Starter blkfox

    (@blkfox)

    So the filter sees the current page and only shows results from that captured URL… Can this be done dynamically or do I need to manually input every URL?

    Thanks

    Thread Starter blkfox

    (@blkfox)

    so using the dynamic text add on to contact form 7 i have the PGE URL column AND the dynamic text column… which are both identical

    Is it possible to filter based on this? i.e. if col4 and col 11 are the same then show?

    Thanks

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Filter table results by current page URL’ is closed to new replies.