Whenever I add a file input to a custom webform content type and mark it as required, there is no red asterisk marking it as required. If I try to submit without selecting a file, it still gives an error and highlights the input in red.

Comments

daven’s picture

StatusFileSize
new532 bytes

We just looked into this and wrote a change that seems to work. Tested on two D7 test sites. Try out the attached patch and let me know if that works. (Apologies if the patch isn't formatted correctly. New at submitting them.)

Dave

PhoenixAvenger’s picture

That worked perfectly. Thanks!

daven’s picture

Status: Active » Patch (to be ported)

Sounds like this patch works. :)

Dave

quicksketch’s picture

Status: Patch (to be ported) » Fixed
StatusFileSize
new1.68 KB

Thanks, I cleaned up this patch a bit by removing unnecessary code that no longer did anything in D7, plus adding a code comment to explain the slightly unusual approach. Committed to D7 branch only. D6 is unaffected.

Status: Fixed » Closed (fixed)
Issue tags: -webform required asterisk missing

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