Support » Plugin: Contact Form 7 » autofill with default:user_login and lock the field?

  • Hello,Is it possible to fill the “Name” field automatically with the login name and then lock (!) the name so the user cannot change it?
    So that I can identify the unique user? we found “default:user_login”, but then the user can type whatever he wants into that field..

    thanks for your help

Viewing 3 replies - 1 through 3 (of 3 total)
  • and is there the chance to send the login name of the user via email instead of the name the user put into the contact form?

    in the contact form one can write whatever one wants. i would like to identify the user who sent a file via the contact form. any ideas about that?

    when i use [your-name] it will only show the name i type into the name field…

    You can hide the field with CSS so the user can’t change the default value.

    Try something like this in your form:

    [text user default:user_login class:hidden]

    And add this to your custom CSS:

    .hidden {
    	display: none;

    To get the login in the e-mail, just add the [user] field in the message body.



    There is a plugin Contact Form 7 Modules which allows adding hidden fields with username etc.

    Never tried it myself though, no warranties..

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘autofill with default:user_login and lock the field?’ is closed to new replies.