I have a JavaScript function that fills some apex:inputfields
and make them disabled so the user cannot change their values.
But it seems that values aren't passed to the controller after an action (commandButton
)
I tried by removing the part in the JavaScript function which disables the inputs and it works fine.
Attribution to: melmoussaoui
Possible Suggestion/Solution #1
Have you tried marking them read-only instead?
Edit As pointed out by eyescream in the comments, disabled fields are not sent on form submission. His link has more detail on that topic.
Attribution to: Mike Chale
This content is remixed from stackoverflow or stackexchange. Please visit https://salesforce.stackexchange.com/questions/5092