Step 4: Adding instructionsSubmission forms generally have some instructions at the top of the page to tell the user what the form is for, etc..
To add instructions to the form, we will just need to insert some content into the before_new_record_form block (defined in the Dataface_New_Record.html template). If you are new to the concept of blocks, slots, and templates, please take a moment to read the customization section of the Getting Started tutorial. We add the following to our table's delegate class to fill in some instructions in this block: function block__before_new_record_form(){ This little method will cause the instructions to show up just above our new record form as follows:
|