• Resolved MikeFrisbee

    (@mikefrisbee)


    I need to make the text ‘Terms & Conditions’ on my Contact form checkbox into a hyperlink.

    Can you please tell me the line I need to add to the below, to make the words ‘Terms & Conditions’ link to https://www.latorre.co.uk/contact ?

    [text 1="your-name" language="*"]Your Name[/text*]
    [email* your-email]Your Email[/email*]
    [text your-subject]Subject[/text]
    [textarea your-message]Your Message[/textarea]
    [acceptance acceptance-956 invert] I accept the Terms & Conditions [/acceptance]
    [submit “Send”]

    I’ve checked other answers to this, but mostly they are links to the Contact 7 pages, such as https://contactform7.com/acceptance-checkbox/

    The page I need help with: [log in to see the link]

Viewing 15 replies - 1 through 15 (of 16 total)
  • Change the acceptance line as follows:

    [acceptance acceptance-956 invert]I accept the<a href="https://www.latorre.co.uk/contact" target="_blank"> Terms & Conditions</a>[/acceptance]

    * Ideally you should link to a specific T&C page.

    Thread Starter MikeFrisbee

    (@mikefrisbee)

    Thanks for this.

    Sorry, I meant link to https://www.latorre.co.uk/terms-and-conditions/

    Unfortunately when I tried that (below) I just got a line of text but not a link.

    [acceptance acceptance-956 invert]I accept the Terms & Conditions[/acceptance]

    I’ll keep it for a few minutes to show you here: https://www.latorre.co.uk/contact/

    Did you copy the full HTML?

    [acceptance acceptance-956 invert]I accept the<a href="https://www.latorre.co.uk/terms-and-conditions/" target="_blank"> Terms & Conditions</a>[/acceptance]

    That should work. I just tried this on a test site and a) the link takes me to the T&C page for the site, and b) the acceptance checkbox works.

    Thread Starter MikeFrisbee

    (@mikefrisbee)

    That’s very strange.

    This is the exact code I’ve used:

    [text 1="your-name" language="*"]Your Name[/text*]
    [email* your-email]Your Email[/email*]
    [text your-subject]Subject[/text]
    [textarea your-message]Your Message[/textarea]
    [acceptance acceptance-956 invert]I accept the Terms & Conditions[/acceptance]
    [submit “Send”]

    It’s still showing a line of text at the bottom instead of a hyperlink.

    Can you wrap the code in backticks so the forum software doesn’t convert the html to a link?

    Another question. Where do you get the [text 1="your-name" language="*"]Your Name[/text*] syntax from?

    This plugin uses:

    <label>Your Name *
    [text* your-name] </label>
    

    https://contactform7.com/editing-form-template/

    Maybe this is why the html link is not working.

    Try building a new form and following the guidance in the docs.

    Thread Starter MikeFrisbee

    (@mikefrisbee)

    I’ve created a new contact form by clicking new and then inserting the one line of syntax into it, which should be the T&Cs as a hyperlink.

    This is it (Including a backtick at the start and end):

    ‘[text 1="your-name" language="*"]Your Name[/text*]
    [email* your-email]Your Email[/email*]
    [text your-subject]Subject[/text]
    [textarea your-message]Your Message[/textarea]
    [acceptance acceptance-956 invert]I accept the Terms & Conditions[/acceptance]
    [submit “Send”]’

    Unfortunately, the link is not showing as still appears as ‘I accept the Terms & Conditions

    Thread Starter MikeFrisbee

    (@mikefrisbee)

    Should be:

    ‘[text 1="your-name" language="*"]Your Name[/text*]
    [email* your-email]Your Email[/email*]
    [text your-subject]Subject[/text]
    [textarea your-message]Your Message[/textarea]
    [acceptance acceptance-956 invert]I accept the Terms & Conditions[/acceptance]
    [submit “Send”]’

    Thread Starter MikeFrisbee

    (@mikefrisbee)

    Sorry – the * (asterisk) after the word ‘text’ keeps converting to a ‘1’ when I post.

    1) note that the backtick (`) is not the same as the apostrophe. On my keyboard it is in the top left corner.
    2) Check my last message regarding the syntax you are using. I think it applies in this case.

    Thread Starter MikeFrisbee

    (@mikefrisbee)

    I’m afraid this looks like it’s beaten me!

    I’ve read and re-read the instructions and all about syntax and I can’t get it right.

    This is the code (with backticks):

    [text 1="your-name" language="*"]Your Name[/text*]
    [email* your-email]Your Email[/email*]
    [text your-subject]Subject[/text]
    [textarea your-message]Your Message[/textarea]
    [acceptance acceptance-956 invert]I accept the<a href="https://www.latorre.co.uk/terms-and-conditions" target="_blank"> Terms & Conditions</a>[/acceptance]
    [submit "Send"]

    I’m still getting the line of text :- I accept the Terms & Conditions

    Backticks looking good!

    Try deleting your Form code and inserting this in your Form page and test:

    
    <label>Your Name *
    [text* your-name] </label>
    
    <label>Your Email *
    [email* your-email] </label>
    
    <label>Your Subject
    [text your-subject] </label>
    
    <label>Your Message
    [text your-message] </label>
    
    [acceptance acceptance-956 invert]I accept the<a href="https://www.latorre.co.uk/terms-and-conditions" target="_blank"> Terms & Conditions</a>[/acceptance]
    
    [submit "Send"]
    

    This is the correct syntax for this plugin.

    Thread Starter MikeFrisbee

    (@mikefrisbee)

    I’m still getting the same issue.

    I started afresh with a new form, deleted the syntax in the form template, then copied and pasted the syntax you gave me and this is the result, on this test page: https://www.latorre.co.uk/attractions/

    PS Bizarrely, looking at my previous post on this, the line of code that I pasted has appeared on the post exactly as I wanted it (‘I accept the Terms & Conditions’).

    I’ve created a test form here using that exact syntax (except I changed [text your-message] to the correct [textarea your-message]). It works as expected

    I suggest you try disabling all other plugins and activating the Twenty-Seventeen theme. Then test the form. If it works and appears correctly (it should) reactivate them one by one and test each time until you find the conflict.

    Thread Starter MikeFrisbee

    (@mikefrisbee)

    That’s perfect.

    I will do as you say.

    Thanks for your patience and perseverance!

Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘Making the Checkbox text a hyperlink’ is closed to new replies.