Hide form action buttons in block

Hide form action buttons in block

by Tom Tom -
Number of replies: 0

I created a custom block. It uses the $this->add_action_buttons() method from the Moodle form's API. However, I need to be able to hide the buttons upon loading the page as the elements (ie fields) are collapsed. Then when the user expands the elements (ie fields) want the action buttons to show up. But I cannot seem to find a way to do it in the form definition. Of course there is the hideIF and there is Jscript to grab the aria collapse/hidden etc. I just don't know how to combine a easy solution inside the form. Any one else had to accomplish this?

Average of ratings: -