I know this is an old thread, but it was one of the only search results, so I'm going to put in how to do it.
Make a picture button, text box and section.
text box doesn't equal 2, formatting, hide this control
Picture Button Rules:
- text box is blank OR text box = 3, Action, Set field's value: text
box = 2
- text box = 2, Action, Set field's value: text box = 3
The text box does not need to be present on the form.
What this does is it creates a loop and allows for multiple clicking. So when you click on the button the text box says 2 and section will show. When you click again the text box will say 3 and the section will hide.
After applying rule 1., you need to check the box "Don't run remaining rules...". If you don't check this box, it will not loop.