• Resolved vipingarg

    (@vipingarg)


    Dynamic hidden field’s shortcode doesn’t work properly. It shows HTML tags in email content.

    It happens only with dynamic hidden fields. If we add HTML in contact form 7 message body, it works properly and changes HTML to content.

    https://www.salesarchitects.com/white-paper/differentiatorsposter/

    Fill this form you receive a dynamic post with HTML tags. It happens after update my WordPress version to 5.0.

    Can you help regarding this issue?

Viewing 6 replies - 1 through 6 (of 6 total)
  • my dynamic text doesn’t work anymore, I used

    <span style=”display:none;”>[dynamictext ticket “quoteticket”]</span>

    now in the emails doesn’t show a unique number, instead, the tag [ticket] just show: quoteticket

    I think stop working with an update.

    how can I fix this?

    Plugin Author sevenspark

    (@sevenspark)

    @vipingarg You can’t put HTML inside a text/hidden input. HTML inputs store their values inside an attribute (e.g. <input value="apple"> ). That means if you try to put HTML tags inside it, they have to be escaped to maintain valid HTML syntax. I suspect that’s what’s going on.

    I think you probably want to rework how you’re doing things – just use the dynamic items for the actual dynamic variables. Keep the HTML you want to use inside the email template itself, and just use the tags inside that markup instead.

    @estudiomagenta sounds like you don’t actually have a “quoteticket” shortcode any longer. That output is controlled by the shortcode

    Thread Starter vipingarg

    (@vipingarg)

    @sevenspark Before WordPress update, it was working fine and was converts all HTML tags to text. Now a hyperlinked text is displayed with the HTML tags in the mail.

    Plugin Author sevenspark

    (@sevenspark)

    That conversion is not something that the DTX controls – it literally just returns what you add in the tag into the input’s value attribute. It doesn’t handle anything else. So while something else may have changed, it’s not within the control of the DTX.

    I still think setting it up the way I described above is the best solution anyway, so that’s how I’d recommend resolving it.

    Thread Starter vipingarg

    (@vipingarg)

    @sevenspark
    I didn’t get your point.

    I have used contact form 7- 4.0.3 with Dynamic extension 1.2.
    These were working fine.
    But After the update of both, They give errors.
    ==============================================================
    Now Again I have downgraded the both plugins, It works fine for HTML templates.
    But no response message is displaying.
    ==============================================================

    The updated version of Dynamic text extension is not working good with updated cf7.
    They didn’t convert [dynamic-text] short code’s HTML content to visual text.
    That’s the issue.

    @sevenspark

    dynamic text was not generating data. It displays the same text. Kindly help with the steps to resolve.

    I have tried with below shortcode in my form

    [dynamichidden ticket_id “quoteticket”]
    [dynamictext dynamictext-433 “‘quoteticket'”]

    ***********Code added in functions.php************

    /* Generate Quote Ticket */
    function genTicketString() {
    $length = 8;
    $characters = “0123456789”;
    for ($p = 0; $p < $length; $p++) {
    $string .= $characters[mt_rand(0, strlen($characters)-1)];
    }
    return $string;
    }
    add_shortcode(‘quoteticket’, ‘genTicketString’);

    It was working fine previously. from last week it was not working. I was new to word press Kindly help with step by step process to resolve this issue

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Dynamic hidden field’s short code doesn’t works properly.’ is closed to new replies.