Questions tagged [validation]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
1 answer

Can I have contacts without email and first name?

Is there a way to change the contact validation to allow only last names like "Mr. Smith"?
Jan's user avatar
  • 145
0 votes
1 answer

Why does civicrm_postProcess hook does not pass certain parameters?

Only the "$formName" variable is getting supplied to the hook callback. Why are the rest of the variables listed in the documentation not getting supplied? add_action('civicrm_postProcess', '...
dsmith63's user avatar
  • 419
0 votes
0 answers

adding New Payment processor not working on multisite environment

Drupal 9, CiviCRM 5.39.2, Domain Module We have a multisite setup using a domain module. Each site has their own payment processor. While adding the new payment processor, the form is not working. it ...
Sunil Pawar's user avatar
1 vote
1 answer

Profile in wordpress need phone validation

I have this profile form made and want to make it so phone can only be enter in one way through validation 123-456-7890. I don't ...
emptyhometax's user avatar
2 votes
1 answer

After upgrading to 5.20.0 - unable to edit or enter contact email addresses- "Email is not valid."

Just upgraded from 5.19.2 to 5.20.0. Upgrade appeared to run through without a hitch.Joomla! 3.9.13, php 7.3.12, mySQL 5.7.28 Now, when editing existing email address, or when entering new contact ...
Jern's user avatar
  • 1,300
2 votes
0 answers

Errors not showing against custom fields using hook validateForm()

Using this code if ($fields["custom_111_79"] == 0) $errors["custom_111_79"] = "Please enter number of physio sessions"; The evaluation is done correctly, but the error message does not appear ...
Simon Walden's user avatar
1 vote
1 answer

Batch Data Entry payment_instrument is now required?

we've been using CiviCRM for several years and we've just recently version 4.7 to 5.8.2, but now we can't use the Batch Data Entry any more. We can create new batches, add entries and save them, but ...
DenisH's user avatar
  • 181
2 votes
1 answer

Broken Batch Validation

CiviCRM 4.7.29 on Wordpress 4.9.8 on Ubuntu Hello all, We had the above instance running well and doing batch validation under CiviContribution well but had recently choked on validation with the ...
Clement Leong's user avatar
2 votes
1 answer

how to add custom validation rules to civievent registration form

I've got an event registration form that I've customized putting Jquery into a custom .tpl override file. It's all working fine, except I'm not sure how to go about adding a custom validation rule. ...
minbori's user avatar
  • 551
2 votes
1 answer

CiviCRM will not recognize valid email address

I am trying to add a new email address for an existing contact. The address is valid. However, the new address will not save and I received this message: Please enter a valid email address The ...
NHPHA Executive Assistant's user avatar
1 vote
0 answers

Mail sender validation error

Using CiviCRM 4.7.31 / Joomla! 3.8.6 / PHP 5.6.33 After Upgrade from 4.7.29 to 4.7.31 it is not possible to send mails. Test Mails do work Error is obviously related to standard sender address, but ...
Hair Transplant's user avatar
0 votes
0 answers

Validation fails on contribution with profile included

Using 4.7.24 with php 5.6. I have a contribution form set up with Confirmation page turned on, and a profile is included to collect extra address information (besides a billing address). Several of ...
Rob Brandt's user avatar
1 vote
1 answer

Validating emails of new CiviCRM accounts?

We are offering CiviCRM to Indivisible working groups and we have a concern that the unauthenticated registrations are going to be a problem. We're pretty sure that the ability to create an account ...
Ray's user avatar
  • 69
1 vote
2 answers

Show validation errors on custom elements added using hooks

I added a text element to a New Event page using buildForm hook. function mymodule_civicrm_buildForm($formName, &$form) { if ('CRM_Event_Form_ManageEvent_EventInfo' == $formName) { $form->...
Dilip Raj Baral's user avatar
1 vote
3 answers

Suitable for online social group?

Im a board member of an online social group. We are looking at updating our website and backend IT systems to include online registration, subscription management, member database, self managing ...
Will's user avatar
  • 13
1 vote
0 answers

Template customization don't appear on validation errors, query string?

I am looking some code for a customization of a specific contribution page on CiviCRM 4.4 system. An extension is implemented that runs hook_buildForm() which operates on the form based on the ID. The ...
radlab's user avatar
  • 11
2 votes
1 answer

Generalizing create/update validation on form and api

Lemme cite an example before explaining the cause. Updated the amount of an contribution id n via Contribution.create api from $100 to $150 and "Execute"d it from API Explorer. (No validation error) ...
Monish Deb's user avatar
7 votes
4 answers

Simple, consistent N. Am. phone validation/reformatting everywhere?

If we want to put in some validation and reformatting for phone numbers to make sure they conform to N. Am. standard for 10 digit numbers, is there a simple way to catch this for everywhere a phone ...
Joe Murray's user avatar
  • 6,741