pyquest.views.frontend

pyquest.views.frontend.determine_qsheet_buttons(qsheet)

Determines which buttons should be shown for the qsheet.

If the QSheet is the last in the Survey the return value will include ‘finish’ otherwise ‘next’. if the QSheet can be answered repeatedly then the return value will include ‘more’. If the QSheet has questions that require answering, then ‘clear’ will be included in the return value.

Parameters:qsheet – The QSheet to determine the buttons for
Returns:A list with the submit options