edubase_post_exam_fields
Update exam registration fields by modifying built-in user data fields and replacing the complete set of custom fields, ensuring view_results_identifier remains valid when uniqueness changes.
Instructions
Change the built-in user data fields of an exam, and replace the complete list of its custom fields. The view_results_identifier setting of the exam is cleared when the selected custom field is not a unique free text field anymore.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| exam | Yes | exam identification string | |
| name | No | request the full name of the examinee (true: use the field with its default label, false: do not use the field but keep its other settings, any other value is used as the label of the field) | |
| No | request the email address of the examinee (true: use the field with its default label, false: do not use the field but keep its other settings, any other value is used as the label of the field) | ||
| phone | No | request the phone number of the examinee (true: use the field with its default label, false: do not use the field but keep its other settings, any other value is used as the label of the field) | |
| fields | No | the custom fields of the exam, in the order they are shown to the examinee, the submitted list replaces the current one so send every custom field that should be kept, use edubase_delete_exam_fields to remove every custom field |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| exam | Yes | exam identification string | |
| name | Yes | the full name of the examinee is requested (false: the field is not used, true: the field is used with its default label, otherwise the custom label of the field) | |
| Yes | the email address of the examinee is requested (false: the field is not used, true: the field is used with its default label, otherwise the custom label of the field) | ||
| phone | Yes | the phone number of the examinee is requested (false: the field is not used, true: the field is used with its default label, otherwise the custom label of the field) | |
| fields | Yes | the custom fields of the exam |