• Resolved Leah

    (@edikitt)


    Hello,

    I was wondering if this plugin’s attributes work alongside the ones pre-built in CF7, as documented here:

    https://contactform7.com/getting-default-values-from-the-context/

    For example, I want a field to dynamically populate with a cookie (I’ve already created the shortcode for this), but if no cookie exists, I want it to populate with a URL parameter. Could I do something like the following:

    [dynamichidden url_param "SB_CF7_COOKIE key='cookie_key'" default:get]

    or even:

    [dynamichidden url_param "SB_CF7_COOKIE key='cookie_key'" "CF7_GET key='url_param'"]

    I’m happy to use either method if one would work but not the other, but is this functionality at all possible?

    Thanks!

Viewing 1 replies (of 1 total)
  • Plugin Author sevenspark

    (@sevenspark)

    Hi edikitt,

    I can say for sure that the latter will not work.

    For the former, I’m not sure off the top of my head – that may be a newer feature of CF7. Unfortunately I don’t have the ability to test it out at the moment. Have you given it a try?

    If it doesn’t work, I think you could just put that logic in your custom cookie shortcode – if there’s no cookie, grab the URL and return that instead.

    Or potentially set up a second hidden field that always includes the URL, and leave the cookie field blank when it’s not present.

    Really just depends on your needs, but I think there are a few ways to accomplish that ??

Viewing 1 replies (of 1 total)
  • The topic ‘Will this plugin’s attributes work in conjunction with CF7’s default attributes?’ is closed to new replies.