Home News Contact Us Forum About Us Demos Products F.A.Q.
Shopping Cart
You currently have 0 items in your cart.


Recent Events
  • 23/11/2024 Black Friday 2024

    BIG SALE, 30% discount for all our extensions. Use BF24 coupon code. Hurry up the discount is valid till 3 December.

  • 31/12/2023 New Year SALE

    We are glad to announce New Year SALE. 25% discount for all our extensions. Use NY24 coupon code. Hurry up the discount is valid till 7 January.


2Checkout.com, Inc. is an authorized retailer of goods and services provided by ARI Soft. 2CheckOut




Follow us on twitter



Welcome, Guest
Please Login or Register.    Lost Password?

how to add custom fields for user details?
(1 viewing) (1) Guest
component
Go to bottomPage: 12345
TOPIC: how to add custom fields for user details?
#42737
how to add custom fields for user details? 11 Years, 4 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
The administrator has disabled public write access.
 
#42739
Re:how to add custom fields for user details? 11 Years, 4 Months ago Karma: 760
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
The administrator has disabled public write access.
 
#42771
Re:how to add custom fields for user details? 11 Years, 4 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
The administrator has disabled public write access.
 
#42773
Re:how to add custom fields for user details? 11 Years, 4 Months ago Karma: 760
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
The administrator has disabled public write access.
 
#42777
Re:how to add custom fields for user details? 11 Years, 4 Months ago Karma: 0
thank you, just sent
The administrator has disabled public write access.
 
#42781
Re:how to add custom fields for user details? 11 Years, 4 Months ago Karma: 760
We have sent updated XML file by email.

Regards,
ARI Soft
The administrator has disabled public write access.
 
Go to topPage: 12345