Timeline for AJAX form - replacing #default_value not working
Current License: CC BY-SA 4.0
9 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Mar 27, 2021 at 9:50 | comment | added | 2pha | Updated the answer with what is working for me in D9 | |
| Mar 27, 2021 at 9:49 | history | edited | 2pha | CC BY-SA 4.0 | Add what is working for me in D9 |
| Mar 27, 2021 at 5:10 | comment | added | 2pha | 8 years later I start reading this answer only to realize it's by me... lol. The answer is wrong BTW, Doing it like this ignored further user input. | |
| Feb 7, 2013 at 14:28 | vote | accept | Web Assistant | ||
| Feb 5, 2013 at 14:30 | comment | added | Web Assistant | I've got this working, but the thing stopping me giving it a correct answer is that the data does not appear in $form_state['values'] or $form_state['input'] after submit, as Ayesh said. I've worked around this by storing the data in $form_state['storage']. If I don't find a better answer I'll mark this as the accepted answer. | |
| Feb 5, 2013 at 12:33 | comment | added | 2pha | Ayesh K may be correct, I haven't tried it. @ Web Assistant, try it an tell us if it works. | |
| Feb 5, 2013 at 9:06 | comment | added | Web Assistant | @Ayesh K. If it works with #value and it's okay to do so, I'll do that. I can always get the value from $form_state['input']? | |
| Feb 5, 2013 at 2:51 | comment | added | AKS | User-entered value will not be includes in $form_state['values'] if #value is set. | |
| Feb 5, 2013 at 2:37 | history | answered | 2pha | CC BY-SA 3.0 |