I'm using a hook_form_alter() function to set the default value of the referral source to "other". I expected that this would automatically show the other field, but it didn't, because referralsources.js hides the other field on page load, regardless of the value of the select field.

Attached is a patch which corrects this. Thanks!

CommentFileSizeAuthor
show-other-field-by-default.patch517 bytesjoelstein

Comments

dandaman’s picture

Issue summary: View changes

This seems like it should work. But I think it would be better if instead of removing the line, we just run the referralsourceOtherCheck(); command again.