Title: Dynamic hidden field&#8217;s short code doesn&#8217;t works properly.
Last modified: December 17, 2018

---

# Dynamic hidden field’s short code doesn’t works properly.

 *  Resolved [vipingarg](https://wordpress.org/support/users/vipingarg/)
 * (@vipingarg)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/dynamic-hidden-fields-short-code-doesnt-works-properly/)
 * 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/](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)

 *  [estudiomagenta](https://wordpress.org/support/users/estudiomagenta/)
 * (@estudiomagenta)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/dynamic-hidden-fields-short-code-doesnt-works-properly/#post-11050037)
 * 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](https://wordpress.org/support/users/sevenspark/)
 * (@sevenspark)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/dynamic-hidden-fields-short-code-doesnt-works-properly/#post-11122945)
 * [@vipingarg](https://wordpress.org/support/users/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](https://wordpress.org/support/users/estudiomagenta/) sounds
   like you don’t actually have a “quoteticket” shortcode any longer. That output
   is controlled by the shortcode
 *  Thread Starter [vipingarg](https://wordpress.org/support/users/vipingarg/)
 * (@vipingarg)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/dynamic-hidden-fields-short-code-doesnt-works-properly/#post-11139517)
 * [@sevenspark](https://wordpress.org/support/users/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](https://wordpress.org/support/users/sevenspark/)
 * (@sevenspark)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/dynamic-hidden-fields-short-code-doesnt-works-properly/#post-11144665)
 * 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](https://wordpress.org/support/users/vipingarg/)
 * (@vipingarg)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/dynamic-hidden-fields-short-code-doesnt-works-properly/#post-11176121)
 * [@sevenspark](https://wordpress.org/support/users/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.
 *  [Sivakkumar](https://wordpress.org/support/users/sivaedits/)
 * (@sivaedits)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/dynamic-hidden-fields-short-code-doesnt-works-properly/#post-11412938)
 * [@sevenspark](https://wordpress.org/support/users/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.

 * ![](https://ps.w.org/contact-form-7-dynamic-text-extension/assets/icon-256x256.
   png?rev=3019574)
 * [Contact Form 7 - Dynamic Text Extension](https://wordpress.org/plugins/contact-form-7-dynamic-text-extension/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/contact-form-7-dynamic-text-extension/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/contact-form-7-dynamic-text-extension/)
 * [Active Topics](https://wordpress.org/support/plugin/contact-form-7-dynamic-text-extension/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/contact-form-7-dynamic-text-extension/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/contact-form-7-dynamic-text-extension/reviews/)

## Tags

 * [dynamictext](https://wordpress.org/support/topic-tag/dynamictext/)

 * 6 replies
 * 4 participants
 * Last reply from: [Sivakkumar](https://wordpress.org/support/users/sivaedits/)
 * Last activity: [7 years, 2 months ago](https://wordpress.org/support/topic/dynamic-hidden-fields-short-code-doesnt-works-properly/#post-11412938)
 * Status: resolved