• Resolved Ankit Khatri

    (@ankitpkhatri)


    Hello,

    The plugin has a conflict of the shortcode with the Contact Form 7 plugin.

    Contact form 7 has a shortcode named [email] which is used to create an email field in the forms.
    But as soon as we activate your plugin the email fields from all forms are lost. Reason your plugin also has a shortcode named [email]. Would you please consider adding some prefix to your shortcodes that are created from file handl-utm-grabber.php ?

    This could prevent conflicts

    Regards,
    Ankit

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Haktan Suren

    (@haktansuren)

    As far as I know you can create unique id for each field in CF7. Can you show me how you are creating your fields?

    Thread Starter Ankit Khatri

    (@ankitpkhatri)

    Hello @haktansuren ,

    Below is how we use the CF7 Email field

    [email* your-email placeholder "Email"]

    But the issue is as soon as we activate your plugin your plugin also has shortcode named email and that conflicts with the above CF7 shortcode, and thus hide the email field from the front end thus making the form not useful.

    Thanks!

    Plugin Author Haktan Suren

    (@haktansuren)

    Hi @ankitpkhatri

    Can you try addin name, id and class attribute like this

    [email email-430 id:myemail class:myemail]

    Thread Starter Ankit Khatri

    (@ankitpkhatri)

    Ok will try and get back to you.

    Thread Starter Ankit Khatri

    (@ankitpkhatri)

    Hello @haktansuren,

    Sorry but this doesn’t fix the issue. The issue I think is your plugin is adding same shortcode named “email” without any prefix your shortcode should have some prefix.

    When I remove email shortcode from your plugin it works fine.

    Thanks.

    Plugin Author Haktan Suren

    (@haktansuren)

    Hi @ankitpkhatri ,

    I can’t reproduce this from my end. See this video https://www.youtube.com/watch?v=rcyWRrx_PZc&t=864s Aren’t you doing the same thing? [email is not a shortcode like [email]. It should not be replaced at all

    Thread Starter Ankit Khatri

    (@ankitpkhatri)

    Hi @haktansuren,

    please check screenshot on the link given below. Check handl-utm-grabber/handl-utm-grabber.php -> CaptureUTMs method.

    This code is added a shortcode [email] for loop array. So as contact form 7 already has a shortcode [email] your plugin email shortcode overwrite it and on the frontend when the form loads it doesn’t have email field.

    Please try this on your local environment, create a contact form 7 form with email field and check frontend page the email will be gone.

    https://prnt.sc/NvjbyOuiXP-L

    Please prefix your plugin shortcodes so it doesn’t conflict with other plugins.

    Thanks!

    Plugin Author Haktan Suren

    (@haktansuren)

    @ankitpkhatri did you watch my video above. I’m aware we have a shortcode [email] but it does not conflict with CF7. If it does, it would conflict in my video as well right?

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Conflict with Contact Form 7 (Email field)’ is closed to new replies.