Timeline for Programmatically change select field options in contact form
Current License: CC BY-SA 3.0
9 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Apr 14, 2017 at 15:10 | vote | accept | Amy | ||
| Apr 10, 2017 at 12:45 | answer | added | 4uk4 | timeline score: 2 | |
| Apr 5, 2017 at 19:59 | comment | added | 4uk4 | I think this is a slightly different error, not from form api, but from entity validation. But as contact forms are entity forms that seems logical. In this case you need to follow this tutorial chromatichq.com/blog/… | |
| Apr 5, 2017 at 19:42 | history | edited | Amy | CC BY-SA 3.0 | added 340 characters in body |
| Apr 5, 2017 at 19:17 | comment | added | Amy | I'm willing to use form alter hook, but I'm not sure how to do it there either | |
| Apr 5, 2017 at 19:17 | history | edited | Amy | CC BY-SA 3.0 | added 91 characters in body |
| Apr 5, 2017 at 19:17 | comment | added | 4uk4 | You can't do this after the form is built, you can only submit options that are processed by the form builder. Otherwise you get the error "An illegal choice has been detected. Please contact the site administrator." Did you try to use a form alter hook? | |
| Apr 5, 2017 at 19:11 | history | edited | Amy | CC BY-SA 3.0 | added new information |
| Apr 5, 2017 at 18:44 | history | asked | Amy | CC BY-SA 3.0 |