Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7417867
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T07:46:50+00:00 2026-05-29T07:46:50+00:00

I have an input field that is filled in from a previous form(so the

  • 0

I have an input field that is filled in from a previous form(so the input is set to disabled on the second page) and we receive null for the value then. This works:

<input type="text" class="boxtpl" name="${field.name}" value="${user?.email}">

but this doesn’t:

<input type="text" class="boxtpl" name="${field.name}" value="${user?.email}" disabled="disabled">

Is there a reason why this seems to break the framework?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T07:46:52+00:00Added an answer on May 29, 2026 at 7:46 am

    Disabled controls shouldn’t actually be submitted with the form, so what you’re seeing is in fact normal behaviour. According to the HTML form specification:

    When set, the disabled attribute has the following effects on an element:

    • Disabled controls do not receive focus.
    • Disabled controls are skipped in tabbing navigation.
    • Disabled controls cannot be successful.

    The definition of successful can be found in the same document. It’s a bit nonsensical to suggest that Play is broken because of this.

    If you want to have a form field that user cannot edit while it should still be sent along when the form is submitted, you can use the read-only attribute, or use JavaScript to disallow user input.

    Update: as pointed out in the comments, the following points may also offer a solution:

    • It’s possible that Play still keeps the disabled control’s form values in the request object, and just doesn’t bind them (so you could retrieve them from the request if needed)
    • Use a hidden field to keep the form value in case you still want to submit the value, but do not want the user(s) to see the control
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an input field that is by default set to type=text so that
I have a dijit.form.NumberTextBox input field that starts out with these parms: new dijit.form.NumberTextBox({
I have a field on a form that is hidden but pulls data from
I have a jQuery jPicker colorpicker that is bound to an input text field
I have an input field on my page where the user will type in
I have a form with an input field where a user enters a unique
I have a form that I would like all fields to be filled in.
I have a form which has fields pre-filled with a default value, like this:
So I have an input field, if it's blank, I want its value to
I have a pretty simple form. When the user types in an input field,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.