Actions

Developer Area/Pieforms

From Mahara Wiki

< Developer Area
Revision as of 16:47, 21 August 2020 by Robertl (talk | contribs)

Form basics

Each form needs to contain:

  • name - And that name must be valid (validity test: could you give a PHP function the name?)

Each form can contain:

  • method - Can be empty or 'post' as each form will pass the session key and we can't do that via 'get'
  • action - Can be empty (defaults to self) or page url
  • elements - An array of form elements to display (see Elements)

The components and attributes that can be used in making a form with Pieforms

Components of a Pieform form

The form consists of a main form array containing the metadata for the form It then has an array of one or more elements that make up the form

... more info to come soon