SproutCMS

This is the code documentation for the SproutCMS project

function nextFieldDetails()

Set the details for the next field which will be outputted.

After returning a field, these values will be cleared from the state machine

Both the label and helptext support a subset of HTML, Text::limitedSubsetHtml for more details

Usage

void Form::nextFieldDetails ( string $label , bool $required [, string $helptext ] );

Arguments

  1. string $label
    Human label for the field (e.g. 'Email address'). Some HTML allowed
  2. bool $required
    True if this field is required, false if it's optional
  3. string $helptext = NULL
    Optional HTML helptext

Return value

  • void