Sometimes when copy pasting form ids some leading or trailing whitespace might go into the text field as well. When submitting you'll get the message "The form_id *** is invalid.".

I think trimming any leading and trailing whitespace from the entered form id would be a good idea.

Comments

codevoice’s picture

+1 on this, I just made this same mistake, didn't notice the white space, and my search for help led me to this ticket. Thanks for posting!

stijndm’s picture

Title: Trim the form_id » Trim the form_id before checking validity
Version: 6.x-2.x-dev » 7.x-1.x-dev

Has been fixed in de D6 branch. Setting this to D7 for further follow up in that branch.

stijndm’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

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