Hi!

I have installed this module and everything works except error message for email cck field. Email format validation works but if you leave blank it shows as general error message, not under email field.

Anyone helps?

Thank you!

Comments

egifford’s picture

I'm also having this issue with Webform 6.x-3.17. I think it has to do with the field type that webform is using: webform_email.

Until the module developers have a chance to to look into it, a quick and dirty fix is to add 'webform_email' to the list of supported field types in the function ife_field_types() in the file ife.module.

This is a great module, btw!

loophole080’s picture

the fix described does not work with webform 3.17, 3.18 or dev unfortunately - try it and the email field doesn't render

also in webform 3.18 the "webform_" prefix has been removed from the email component (I also tried using just "email" instead, but still no joy)

Dret’s picture

Same problem!

ain’s picture

I can confirm the issue.

Also for a non-required email field with the incorrectly formatted email the error appears at the top of the node and is not wrapped below the email field.

I think there's no easy solution to the problem since IFE relies on Forms API that doesn't support HMTL5 controls. AFAIK it is being developed for Drupal 8.

ain’s picture

Status: Active » Needs review
StatusFileSize
new479 bytes

Considering the above suggestion, I'm attaching a patch. webform_email addition to extras works both in Webform 6.x-3.17 and 6.x-3.18.

stijndm’s picture

Status: Needs review » Fixed

Now available in the latest dev version

Status: Fixed » Closed (fixed)

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