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 (Moderator: Dave Greenberg) »
  • Automatically setting a date in a field when a Radio Button is checked
Pages: [1]

Author Topic: Automatically setting a date in a field when a Radio Button is checked  (Read 713 times)

appaulmac

  • I’m new here
  • *
  • Posts: 3
  • Karma: 0
Automatically setting a date in a field when a Radio Button is checked
December 14, 2011, 02:20:00 pm
Is there a way to set the current date in a custom field when a user chooses a Yes value from a pair of Custom Yes/No Radio Buttons? I need to know when someone has chosen Yes, to work out when their 'subscription' to the service was started.

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: Automatically setting a date in a field when a Radio Button is checked
December 14, 2011, 02:37:48 pm

You should be able to do this via a jquery snippet.

check:

http://civicrm.org/blogs/dave-greenberg/now-its-easier-add-custom-behaviors-templates

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 (Moderator: Dave Greenberg) »
  • Automatically setting a date in a field when a Radio Button is checked

This forum was archived on 2017-11-26.