Questions tagged [validations]
The validations tag has no usage guidance.
23 questions
0
votes
1
answer
457
views
Form validation in Joomla with form rules doesn't work
It will try to include new rules to validate the fields of a form and it does not work. I can not even get messages on the screen. Am I missing something in the code?
Here is my code:
<form ...
0
votes
2
answers
172
views
How to validate the Article - Intro Image field in the backend?
When managing an Article in the administrator/backend, it is possible to insert a non-url into the "Intro Image" field (located in the "Images and Links" tab).
Upon clicking "Select" a modal window ...
1
vote
0
answers
598
views
Show select when checkbox is checked and validate select as required
I have added new fields in the configuration file for my form, like this:
<?xml version="1.0" encoding="utf-8"?>
<form>
<fieldset>
<field name="yes" type="checkbox" ...
2
votes
1
answer
408
views
Joomla 2.5 email validation issue
There seems to be a major issue on several v2.5.7 sites I've been asked to help with, where emails are not being validated when entered into the built-in com_contact component on a standard contact-us ...
1
vote
1
answer
764
views
Server side form validation always returns true
I am trying to validate the input of my form on server side, but I always get true from the validator. What am I doing wrong?
.../templates/customer_registration.xml
<?xml version="1.0" encoding="...
1
vote
2
answers
666
views
Edit Joomla 3.x library file (to customize form validation error messages)
I want to change some lines in this Joomla's 3.6.5 library file:
C:\xampp\htdocs\joomla\libraries\joomla\form\form.php
I searched many places to find out how to do this, but unfortunately there ...
2
votes
1
answer
67
views
Joomla's default server-side validation
I want to know that if the Joomla's (3.6.5) default server-side validation (for forms' fields) is secure enough to rely on it only? In other words, is it necessary to make changes to Joomla's server-...
1
vote
1
answer
1k
views
Form-Validation in Frontend
I'm trying to get my component ready for frontend-action. There are some forms that are filled by the user - but of course I have some fields that need specific values (int, float, ...) and some ...
3
votes
4
answers
751
views
Check if a string is an URL
just need to check if a given string is an URL or something else.
Can I use something like the following or Jomlla already has something to deal with it:
$url = "http://www.my_url.com";
if (!...
0
votes
1
answer
252
views
Ajax in custom handler on client side
Im making custom formular and for one field I need a username ajax validation.
I prepared a custom handler in jQuery:
document.formvalidator.setHandler('usernamecheck', function(value) {
jQuery("...
1
vote
1
answer
693
views
How to set the form validation only for the fields that are shown
In the admin side I have a XML form with 2 fields as below. Both the fields are marked as required=true
<field name="field1"
type="text"
label="Field1"
required="true"/>
<field name="...
1
vote
1
answer
401
views
Form Validation - Server Side vs Client Side
Just got confused by seeing both type of validations in Joomla. So far my understanding of these 2 is as below
Client Side Validation
Done via jQuery/Javascript on the client browser
Server Side ...
1
vote
1
answer
3k
views
Joomla 3 submit a form via AJAX after javascript checking fields validation
Faced with such a problem, how to make sure that the used AJAX request is sent only in case of successful completion of the built-in Joomla js validator.
The code pattern is about the
<?php
// ...
3
votes
2
answers
1k
views
Recaptcha 2.0 Joomla 3 - Validation failed - PHP
I use Joomla 3.4.1 and Recaptcha v 2.0.
I can't validate the captcha, i'm sure i've the good PHP code..
This is the code in plugin file, recaptcha.php :
function onCheckAnswer($code = null)[...]
...
6
votes
1
answer
2k
views
Recommended way of Server-side validation for custom component with Ajax
I'm developing custom component and I use Ajax for calling various tasks via controller.
I've one form, where user inputs data which should get validated before database transaction. I'm using JTable ...
1
vote
2
answers
3k
views
Form validation with fields having space as value
This is the field in the admin side form which is ment to be required.
<field name="exam_name"
type="text"
label="Name"
required="true" />
In the form if I leave this field empty (null) then ...
1
vote
1
answer
553
views
Joomla 3 form validation
Why the form validation does not work on Safari ?
I tried not to load the JHTML::_(behavior.formvalidator)
I load the fields from the XML file
<field
name="title"
type="text"
...
2
votes
1
answer
868
views
Custom bootstrap error message
I am doing custom form validation at admin side and below is the sample javascript code
Joomla.submitbutton = function(task)
if(condition){
document.getElementById('jform_acc_reseller_id')....
1
vote
3
answers
3k
views
Cancel Button in custom default.php layout leads to form validation error
I am facing a problem with my cancel button in my default.php, which is a form with some input fields aswell a save and cancel button. There are some required fields in my form. When I use the cancel ...
4
votes
1
answer
719
views
Joomla! 3.3.6 - JQuery validation plugin using remote method
I'm trying to validate against a remote request, but the result is pulling in template info as well - throwing off my true/false response. This works fine outside of Joomla, but I'm not finding a way ...
1
vote
1
answer
278
views
Javascript validation check box issue with Joomla v3.3
I tried to implement a check box to go to the products pages of this joomla v3:
http://www.nordicpharma.com/es/nuestros-productos.html
Two methods was used without success !
http://jsfiddle.net/moja/...
5
votes
1
answer
3k
views
Server-side validation rule is not being found
I've added a custom field to com_content, and everything has been working wonderfully. I'm now trying to add some server side validation, and after following all the tutorials and examples I've been ...
4
votes
1
answer
491
views
Module Params Custom Validation is possible?
Now I have situations to validate Module params in admin side of a module.
I know there is option with Filter in module params but its limited , I can't validate some patterns or custom conditions.
...