Hi,
I have a DOB field in a webform and I want the age field to be an automatically calculated field and the result should be placed in a textfield.How do i do this?
Thanks.

Comments

quicksketch’s picture

Priority: Critical » Normal
Status: Active » Fixed

Webform is not capable of doing this without custom code, as far as I know. A quick Google turns up this answer: http://www.r2marketing.nl/blog/calculate-fields-webform-drupal

As mentioned in the submission guidelines:

Any issues regarding "how do I code ..." or "how do I theme ..." will not be answered. Please look elsewhere for coding resources.

So I'm marking this fixed (so it still shows up in the listing for a while), but this issue won't get more feedback from maintainers.

vernond’s picture

@Reema_0902 - You could also give this sandbox module a whirl. It works well with a use case as you describe: Webform Computed Component

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Anonymous’s picture

Issue summary: View changes

Help required