• Resolved damienoneill2001

    (@damienoneill2001)


    Hello,

    I have managed to bring in the URL field using the contact form 7 dynamic fields plugin. I have added the url using:

    [dynamichidden url "CF7_URL"]

    I have also seen this code to make the field clickable in the database:

    <script type="text/javascript">
    (function ($) {
      $('td[title="url"] div').each(
        function () {
          $(this).html('<a href="http://' + $(this).html() + '">' + $(this).html() + '</a>');
    })
    })(jQuery);
    </script>

    My question is, how can that code be implemented with the Contact Form 7 fields?

    Thanks

    Damien

    https://wordpress.org/plugins/contact-form-7-to-database-extension/

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

    (@msimpson)

    It is not related to CF7 fields. It is used with a CFDB short code that displays form submissions.

    Thread Starter damienoneill2001

    (@damienoneill2001)

    Thats what I thought.

    Is it possible to get the link working in the database table even if the field has come from contact form 7?

    Plugin Author Michael Simpson

    (@msimpson)

    I don’t understand what that means. How can a link work in a DB?

    Thread Starter damienoneill2001

    (@damienoneill2001)

    Haha, I don’t know. That’s why I was asking 😀

    I thought that it might be possible in someway to be able to click on the Database entry and it would take the user out to the post the form was generated from.

    In my scenario, I have a site that has a number of user generated posts. Other users can sent messages to the authors of the post via the contact form and my aim was that when the message came into the database, I could quickly look at the post rather than having to open the custom post type and search for the post in question.

    If that is not possible, cool. Just wanted clarification really.

    Plugin Author Michael Simpson

    (@msimpson)

    No, I can’t think of a way to do that.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Clickable link with Contact Form 7 in database table’ is closed to new replies.