CiviMRF / cmrf_core

Drupal Core for CMRF
GNU Affero General Public License v3.0
2 stars 6 forks source link

Webform integration: Prefill webform with hash-token data #14

Closed bjendres closed 5 years ago

bjendres commented 6 years ago

The 7.x module cmrf_webform should be able to pre-fill the form with data from CiviCRM, if it is called with a CiviCRM hash-token.

jaapjansma commented 6 years ago

This would be nice.

jensschuppe commented 6 years ago

Detailed requirements (as discussed with @systopia):

jensschuppe commented 6 years ago

@systopia This is available for real world testing in 7.x-0.7-alpha1.

bjendres commented 5 years ago

Seems to work nicely so far - except for one crucial thing: It doesn't fill hidden fields. That would be very important if you want to e.g. fill and later submit the contact_id, but prevent the user from injecting their own.

@jensschuppe: Could you have a look at this as soon as possible, please?

jensschuppe commented 5 years ago

@systopia This should work with 1ae2466b5dbc6cd833639b94cdf754ee19088a99. "Hidden" components do not respect a #default_value but need a #value to be set (See Drupal Form API Reference for value form elements)