• Resolved suryaxv

    (@suryaxv)


    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

    Please Solve and Clarify my above doubts .

    Thank you .

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Nithin – WPMU DEV Support

    (@wpmudevsupport11)

    Hi @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:

    <?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

    You can refer the following doc on how to create a shortcode:

    https://developer.ww.wp.xz.cn/reference/functions/add_shortcode/
    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

    (@wpmudev-support2)

    Hi @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.