Please see attached example. When all field are filled out correctly, the buttons are colored and lead to the Print dialog. When the conditions are not fulfilled, the buttons are gray and produce a corresponding error message.
- The blue button allows printing as long as none of the fields is empty.
- The red button allows printing only if data that have been entered fulfill certain conditions. The input control can be extended as needed.
I hope this is useful, Michael