Open <wordpress_plugins>/ari-stream-quiz/includes/views/quiz-session/tmpl/default.php template file and find the following code:
Code: |
<div class="quiz-user-data-content quiz-user-data-content-after data-row">
<?php echo $quiz->quiz_meta->content->after_lead_form; ?>
</div>
|
Add before it the following code:
Code: |
<div class="data-row">
<label for="<?php echo $prefix . '_userdata_field1'; ?>">Field 1 :</label>
<input type="text" id="<?php echo $prefix . '_userdata_field1'; ?>" data-key="field1" autocomplete="off" placeholder="Enter some data" />
</div>
<div class="data-row">
<label for="<?php echo $prefix . '_userdata_field2'; ?>">Field 2 :</label>
<input type="text" id="<?php echo $prefix . '_userdata_field2'; ?>" data-key="field2" autocomplete="off" placeholder="Enter some data" />
</div>
<div class="data-row">
<label for="<?php echo $prefix . '_userdata_field3'; ?>">Field 3 :</label>
<input type="text" id="<?php echo $prefix . '_userdata_field3'; ?>" data-key="field3" autocomplete="off" placeholder="Enter some data" />
</div>
|
It adds "Field 1", "Field 2" and "Field 3" fields to the form. The data will be stored in #_asq_results DB table. It requires extra PHP code if you want to show these data on some page/report.
Regards,
ARI Soft