CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Joomla Extensions (Moderator: lcdweb) »
  • Custom field "required" status override
Pages: [1]

Author Topic: Custom field "required" status override  (Read 2019 times)

gladiator

  • I’m new here
  • *
  • Posts: 12
  • Karma: 0
  • CiviCRM version: 3.3.6
  • CMS version: J1.5.23
  • MySQL version: 5.1.44
  • PHP version: 5.3.2
Custom field "required" status override
September 07, 2011, 06:33:06 pm
I have created a set of custom fields with status "not required". I am using two custom profiles where these custom fields are "required". However the profile views does not show the custom field as required.

Please advise.

lcdweb

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1620
  • Karma: 116
    • www.lcdservices.biz
  • CiviCRM version: many versions...
  • CMS version: Joomla/Drupal
  • MySQL version: 5.1+
  • PHP version: 5.2+
Re: Custom field "required" status override
September 07, 2011, 06:46:47 pm
just tested and it seems to be working on the demo site:
http://joomla.demo.civicrm.org/index.php?option=com_civicrm&task=civicrm/profile/create&gid=10&reset=1

if you're just not seeing the asterisk indicator for the required fields, make sure your site template isn't overriding the core civicrm css styles.
support CiviCRM through 'make it happen' initiatives!
http://civicrm.org/mih

gladiator

  • I’m new here
  • *
  • Posts: 12
  • Karma: 0
  • CiviCRM version: 3.3.6
  • CMS version: J1.5.23
  • MySQL version: 5.1.44
  • PHP version: 5.3.2
Re: Custom field "required" status override
September 08, 2011, 02:44:57 am
Hi

Thanks for the quick response. Its not the asterisk sign. The preview from within the backend is not showing it as required either. When I submit the blank form, the validation is not throwing any error either. We are still using 3.3.6.

All of my custom fields were of type "File upload". I had used this workaround (http://forum.civicrm.org/index.php?topic=12350.0) sometime back. Is this causing the problems anyhow?

More worryingly, I tried to create another custom set and its not letting me create a new one now!! Even though I select the 'used for' field as "contacts" it throws an validation error as if I have not selected it.   ???

Regards

lcdweb

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1620
  • Karma: 116
    • www.lcdservices.biz
  • CiviCRM version: many versions...
  • CMS version: Joomla/Drupal
  • MySQL version: 5.1+
  • PHP version: 5.2+
Re: Custom field "required" status override
September 08, 2011, 04:35:47 am
not sure what's going on. your running a mature version within that release cycle, so i doubt there's something natively going on. if you had originally implemented that modification on an earlier version, try reverting it and seeing if things resolve. also -- if you modified that file in an override directory, make sure that override file is based off the same version core file.
support CiviCRM through 'make it happen' initiatives!
http://civicrm.org/mih

gladiator

  • I’m new here
  • *
  • Posts: 12
  • Karma: 0
  • CiviCRM version: 3.3.6
  • CMS version: J1.5.23
  • MySQL version: 5.1.44
  • PHP version: 5.3.2
Re: Custom field "required" status override
September 08, 2011, 05:41:05 pm
Ok. I am able to replicate the error in the demo install.

http://joomla.demo.civicrm.org/index.php?option=com_civicrm&view=Profiles&Itemid=8

The custom data field (upload file) is not mandatory but within the new individual profile it is made mandatory. However, you can see that on submission the validation is not done.

Regards

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Custom field "required" status override
September 08, 2011, 08:47:22 pm

yes, this is still an open issue in 4.0 and earlier. Hopefully we'll get a patch for this for the 4.1 release

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

gladiator

  • I’m new here
  • *
  • Posts: 12
  • Karma: 0
  • CiviCRM version: 3.3.6
  • CMS version: J1.5.23
  • MySQL version: 5.1.44
  • PHP version: 5.3.2
Re: Custom field "required" status override
September 08, 2011, 11:48:51 pm
Thanks a lot for the quick update. It will be great if you could provide a link to the issue number on Jira. If you could point me towards the files that contains the validation code etc then I can try and submit a patch.

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Custom field "required" status override
September 09, 2011, 07:54:52 am

http://issues.civicrm.org/jira/browse/CRM-7464

I suspect the fixes originate in CRM/Profile/Form* and CRM/Core/BAO/UF*

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Joomla Extensions (Moderator: lcdweb) »
  • Custom field "required" status override

This forum was archived on 2017-11-26.