Dynamic Max Value for Number Input

[ad_1]

Howdy, I was already looking through this forum hoping to find a solution, but didn’t find anything. Maybe some of you can help…

I have a Advanced Custom Field with an Input Number. I get this number via php and use it in my contact form (via shortcode an the Contact Form 7 – Dynamic Text Extension). Everything works fine. BUT…

Now I want to use this number as a max. value in an number input field. (the usecase is for a reservation of a special number of tickets) . I tried a few things all including some js-code, but it all does not work – i guess, because Contact Form 7 is allways overwriting some things. Thats why, the number input field “knows” (as i can see in the browser) that the new max value is for instance 30, but acts like it has no max value.

Is there any possibility to use my shortcode as a max value? Or maybe there is a plugin, that can help?

I appreciate any help.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer