I created a form intended to be used for logged in and anonymous users. I set it up so that the default name value in the Name field was %username, thinking it would do something smart for non-logged in users. Sadly, it did not: it simply filled in %username in the field! This creates a very confusing and unprofessional user experience for those anon users so obviously I have to leave the default out, which is a shame because it's a great feature. Same thing happened for %useremail.

It should do SOMETHING better than this, like use the system defined anonymous name or leave it blank or SOMEthing. Anything is better than the variable name, which effectively makes using the otherwise very convenient variables useless.

Thanks for a great module!

bjorn

Comments

rank’s picture

Yep, exact same problem for us too.
Tokens such as %username (in textfield) and %useremail (in email field) are displayed as-is, while the expected behavior is for the text box to be blank for anonymous user input.
Beyond bad user experience this is functionally broken for mandatory fields, that this way get falsely validated because of the token text.

Note that profile tokens - such as %profile[first_name] - do work as expected above.

cdale’s picture

Status: Active » Closed (duplicate)