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 »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • How to require a file type field in a profile
Pages: [1]

Author Topic: How to require a file type field in a profile  (Read 1230 times)

michaels23

  • I post occasionally
  • **
  • Posts: 77
  • Karma: 1
How to require a file type field in a profile
July 07, 2007, 04:59:00 pm
Hi all,

I don't seem to have what it takes to figure out how to successfully require a file type field in a profile:

  • I created a custom field with field type = file and required = Y.
  • I created a profile to be used for both profile and search results.
  • I added the file field to the profile and, again, set required = Y.
  • I had no trouble uploading a file with the profile, however,
  • when I try to edit the contact with the profile, the input for the field is empty (the profile does correctly display the link to the file and to delete it). That doesn't bother me, but
  • if I Submit the profile without deleting the old and uploading a new file, I get a is a required field error.

That's a simple example that would be useless in practice, but I'd like users to be able to edit other fields in the profile without getting this error.

TIA for any suggestions.

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: How to require a file type field in a profile
July 07, 2007, 09:42:02 pm

Can u please reproduce this on http://sandbox.civicrm.org/ and if so, file an issue at http://issues.civicrm.org/

thanx

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 »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • How to require a file type field in a profile

This forum was archived on 2017-11-26.