Title: Forminator HTML Custom Code Not working
Last modified: November 16, 2023

---

# Forminator HTML Custom Code Not working

 *  Resolved [suryaxv](https://wordpress.org/support/users/suryaxv/)
 * (@suryaxv)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/forminator-html-custom-code-not-working/)
 * Hey Forminator ,
 * I have an issue regarding the HTML input in the Form . I put an HTML input in
   my form in that i want to write code for range input in html . But when i inserted
   the code then it is not showing in the form . Please tell me why it is happening.
 * My second Doubt is , I want to put a Custom price range slider in my form and
   i want to get the price range slider data to the email with all the form fields
   like name , email , service etc…. when the form is submitted .
 * For example : If a user fills the form and use the price range slider to tell
   his budget from a initial to maximum value then when he submits the form the 
   along with the all form fields the data from my custom price range slider should
   also come . Is this functionality possible using forminator ? If possible please
   guide me how to achieve it .
 * Example of price range slider : [https://codepen.io/aaroniker/pen/VwZOOxz](https://codepen.io/aaroniker/pen/VwZOOxz)
 * Please Solve and Clarify my above doubts .
 * Thank you .

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

 *  Plugin Support [Nithin – WPMU DEV Support](https://wordpress.org/support/users/wpmudevsupport11/)
 * (@wpmudevsupport11)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/forminator-html-custom-code-not-working/#post-17207047)
 * Hi [@suryaxv](https://wordpress.org/support/users/suryaxv/),
 * > But when i inserted the code then it is not showing in the form . Please tell
   > me why it is happening .
 * I suppose you are adding PHP codes? If yes, its expected to not work. The field
   will only support HTML.
 * You can add the PHP code by creating a shortcode and then using that shortcode
   inside the HTML field.
 * You’ll have to make sure to add the following code as a mu-plugin to ensure the
   shortcode works when added inside the HTML Field:
 *     ```wp-block-code
       <?php
   
       add_filter( 'forminator_replace_variables', 'do_shortcode' );
       ```
   
 * Please check this link on how to implement the above code as a mu-plugins:
   [https://wpmudev.com/docs/using-wordpress/installing-wordpress-plugins/#installing-mu-plugins](https://wpmudev.com/docs/using-wordpress/installing-wordpress-plugins/#installing-mu-plugins)
 * You can refer the following doc on how to create a shortcode:
 * [https://developer.wordpress.org/reference/functions/add_shortcode/](https://developer.wordpress.org/reference/functions/add_shortcode/)
   
   [https://wpmudev.com/blog/create-shortcodes/](https://wpmudev.com/blog/create-shortcodes/)
 * >  I want to put a Custom price range slider in my form and i want to get the
   > price range slider data to the email with all the form fields like name , email,
   > service etc…. when the form is submitted .
 * I’m afraid, such a feature isn’t supported at the moment and will require a lot
   of custom coding. Neither there is any easy workaround that could be suggested
   to implement a custom Range Slider.
 * We already have plans to implement Range Slider down the plugins roadmap, however,
   there isn’t any ETA we could provide at the moment.
 * Kind Regards,
 * Nithin
 *  Plugin Support [Amin – WPMU DEV Support](https://wordpress.org/support/users/wpmudev-support2/)
 * (@wpmudev-support2)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/forminator-html-custom-code-not-working/#post-17233550)
 * Hi [@suryaxv](https://wordpress.org/support/users/suryaxv/) ,
 * There have been no questions from your side for over a week now, so I will mark
   this as resolved.
    If my colleague’s response was not helpful please go ahead
   and re-open the topic.
 * kind regards,
    Kasia

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

The topic ‘Forminator HTML Custom Code Not working’ is closed to new replies.

 * ![](https://ps.w.org/forminator/assets/icon-256x256.gif?rev=3443182)
 * [Forminator Forms – Contact Form, Payment Form & Custom Form Builder](https://wordpress.org/plugins/forminator/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/forminator/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/forminator/)
 * [Active Topics](https://wordpress.org/support/plugin/forminator/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/forminator/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/forminator/reviews/)

## Tags

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

 * 2 replies
 * 3 participants
 * Last reply from: [Amin – WPMU DEV Support](https://wordpress.org/support/users/wpmudev-support2/)
 * Last activity: [2 years, 6 months ago](https://wordpress.org/support/topic/forminator-html-custom-code-not-working/#post-17233550)
 * Status: resolved