† form_get_answer ( session, form , question )

† form_get_answer ( session, form , question )

THIS FUNCTION IS DOCUMENTED BUT HAS NEVER EXISTED

Is a function to retrieve the current answer values. Text and calculated fields cannot be edited by the function

Input

parameters:

session: is the session id obtained in the session_init call

form: is a ref of the form obtained by the URL or by the  or event_form_list ( session, event_id )

question: is the ref of a question in a form {form_id/}question_id. The ID can be obtained by the function form_get_summary()

Output

parameters:

question: is a question XML like:

question_id: is the ID of the question for the form

type: is the type of the question, can be TEXT, RADIO WITH VALUES, etc.. for more information see the call template_import()

value: is the answer of the user. If the field is a CHECK (multiple answers possible) the selected options are split by ‘|’.

option_id: is the id of the selected option for RADIO, CHECK and COMBO field types. If the field is a CHECK (multiple answers possible) the selected options are split by ‘|’.

description: is the description of the option in the language of the session

ErrorMsg: any fault in the call, either in the validation of input parameters, errors in the connection to the database or any other error, this parameter returns the error message produced

Request

sample:

form_get_answer( “LCAAAAAAAAAAA”, “1234”, “1”);

Response

sample:

<?xml version="1.0" encoding="utf-8" standalone="yes"?>

<question>

<value>123{|NNN}</value>

{<option_id>NNN{|NNN}</option_id>}

</question>

<ErrorMsg></ErrorMsg>

Notes: