I created a infopath form that is divided into views and put some buttons to switch the views. I want the last two buttons will only work during a month of August and December. And rest of the time, the buttons will grey out or hide automatically.

1 Answer 1


Create a hidden field. write down default value as =TEXT([DateField];"mmm")

On Button add formatting condition as Not equal to "AUG" OR Not equal to "DEC" then hide.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.