Duplicate entry \'8333026\' for key \'jos_fb_whoisonline.PRIMARY\' SQL=INSERT INTO jos_fb_whoisonline (`userid` , `time`, `what`, `task`, `do`, `func`,`link`, `userip`, `user`) \n VALUES (\'0\', \'1714270564\', \'how to add custom fields for user details?\',\'\',\'\',\'view\',\'https://www.ari-soft.com/index.php?option=com_kunena&Itemid=54&catid=5&func=view&id=42737&lang=en\', \'18.189.14.219\', \'0\')
how to add custom fields for user details?
(0 viewing)
| | |
TOPIC: how to add custom fields for user details?
|
how to add custom fields for user details? 10 Years, 9 Months ago
|
Karma: 0
|
Hello,
I'd like to add some custom fields for user details
asked before the quiz start (currently name and e-mail are the default fields)
you already told me that this is possible by modifing an xml file, could you
please point me out which file exactly and also suggest the sintax to add more fields
(I want to add text and select fields)
Thank you,
Nic
|
|
|
|
|
Re:how to add custom fields for user details? 10 Years, 9 Months ago
|
Karma: 748
|
Hello,
See <joomla_directory>\components\com_ariquiz\models\forms\quizform\guestform.xml file.
Use the following code to add select element:
<param type="list" default="opt1" name="Myfield" label="Drop-down list" description="">
<option value="opt1">Option 1</option>
<option value="opt2">Option 2</option>
<option value="opt3">Option 3</option>
</param>
Regards,
ARI Soft
|
|
|
|
|
Re:how to add custom fields for user details? 10 Years, 9 Months ago
|
Karma: 0
|
thank you,
and how can i have those filed values visible for each user in "quizzes results" page in backend?
also how to make some fields required?
I have to add strings below this line
<validators addpath="/administrator/components/com_ariquiz/validators">
in this form
<validator type="required" error_message="COM_ARIQUIZ_ERROR_GUESTFORMNAMEREQUIRE" validate="UserName" />
?
Nic
|
|
|
|
|
Re:how to add custom fields for user details? 10 Years, 9 Months ago
|
Karma: 748
|
It is necessary to add validator(s) to <validators> section if you want to do some fields required. Send your XML file by email and specify what field(s) do you want to do required so we can say what validators are necessary to add.
It is possible to use predefined variables in text templates to show extra fields at the end of a quiz on frontend or send them in email. The extension doesn't show them on backend.
Regards,
ARI Soft
|
|
|
|
|
Re:how to add custom fields for user details? 10 Years, 9 Months ago
|
Karma: 0
|
thank you, just sent
|
|
|
|
|
Re:how to add custom fields for user details? 10 Years, 9 Months ago
|
Karma: 748
|
We have sent updated XML file by email.
Regards,
ARI Soft
|
|
|
|
|
|
| | |