'All of the question metadata will be stored in the metadata
field in a JSON format.
They will then be inserted into the survey_question_metadata
table pair will be a record on that table.'

@staticmethod
def question_onaccept(form):

    form_vars = form.vars
    if (form_vars.metadata is None):
        return
    if form_vars.id:
        record = current.s3db.survey_question[form_vars.id]
    else:
        return
    if (form_vars.metadata and (form_vars.metadata != '')):
        survey_updateMetaData(record, form_vars.type, form_vars.metadata)
