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


Recent Events
  • 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.

  • 21/11/2023 BLACK FRIDAY 23 is coming

    BIG SALE, 35% discount for all our extensions. Use BF23 coupon code. Hurry up the discount is valid till 27 November.


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?

Custom field validate in quiz settings
(1 viewing) (1) Guest
component
Go to bottomPage: 1
TOPIC: Custom field validate in quiz settings
#60671
Custom field validate in quiz settings 7 Years, 4 Months ago Karma: 2
Hello!
In the admin panel, the quiz settings added the own field. Tell me how to save a quiz, you need to validate your field, how to do it?

/administrator/components/com_ariquiz/models/forms/quiz/quiz.xml

<Validator type = "required" error_message = "" validate = "CategoryList" client_validation = "0" />
Last Edit: 2017/07/07 07:45 By stepan39.
The administrator has disabled public write access.
 
#60672
Re:Custom field validate in quiz settings 7 Years, 4 Months ago Karma: 760
Hello,

For example if you want to add required validator for custom field with ID equals to "MyField", add the following code to appropriate section (see <validators> tag) in the XML file:

Code:


<validator type="required" error_message="Specify a value for MyField field" validate="MyField" />



Regards,
ARI Soft
The administrator has disabled public write access.
 
#60706
Re:Custom field validate in quiz settings 7 Years, 4 Months ago Karma: 2
Thanks
The administrator has disabled public write access.
 
Go to topPage: 1