taufiqridha
Forum Replies Created
-
Thanks for reaching out @prashantrai
I already found the solution. But i’ll write here as reference to other. Or maybe you have more classy solution.So lets say i have 2 fields. All is required
1. Radio button
2. Text areaI’ve created function in javascript to disable textarea if some value in radiobutton. But because of wpforms backend function check and found textarea are required and off course textarea on disable state, this will stop submission, and says textarea are required.
In my case our Form are multiple form. I use beforepagechanged to re-enable my textarea if this texarea page located isn’t active. From there i can still submit the form, because textarea isn’t on disabled mode.
That’s my solution.I don’t know maybe if we’re on single form we can call beforesubmit instead beforepagechanged (I’m not try yet)
Is there any other way to achieve this or more elegant solution? @prashantrai
- This reply was modified 2 years, 3 months ago by taufiqridha.
While this happened to me when guy from support not read my question before, and answering with template, but i think you missed one point here @lordsnake.
What @niksebastian trying to said that you need to exclude specific file on wpforms js file. Something like ‘wp-content/plugins/wpforms/assets/js/wpforms.min.js’ not turn off all cache on your site.
Maybe I also wrong.Hi maybe this link what youre looking for
https://wpforms.com/docs/how-to-customize-the-style-of-individual-form-fields/Try
Add important to your code
font-size: 1.1em ! important;