Hi,
I have date based TV. I would like to prevent a blank date from being saved, but it does allow blank values.
I setup the input options tab to allow blank to "no". Is there anything else required to not allow blank values.
I am using 2.1.2 and have some form customization rules for this page.
Thanks,
Bart
-
☆ A M B ☆
- 894 Posts
What are you using formit or something else?
Anywyas, you can try using an output modifier for the TV here’s an example:
[[*yourTv:empty=`trigger error`:else`your success action goes here`]]
I think something like that will work if not you will have to try using the If plugin do a search for it in the package manager.
Here’s some more info on
Output Modifiers and here is the documentation for the
If plugin.
Hope that helps.
Thank you for the response. I am actually talking about in the admin area. I am using some basic form customization rules but need validation so a blank value is not saved at all. I know I could filter using output modifiers when I go to display the variables, but I would prefer the form not to allow the save at all.