Hi everyone from Chile!
Maybe someone could help me.
So I have this QForm and I have some social media q-input links where you have to click on a checkbox to enable the input before inputting your link.
On each input, I validate the input with a regex to make sure it contains “http” or “https” in it.
The thing is, if i don’t enable the input, on submit If i validate the form it will validate also the “disabled” inputs that have no content.
:rules="[val => val.match(/^(http|https):\/\/(.*)/) || 'Incorrect Link format']"
Where if “data.facebook.enable” is true, I would like to trigger the rules.
I know some workaround, but I wanted to know if there is an easier way to solve this. Also, add, this is a child component of the overall form.
Thanks in advance!