Skip to main content

Timeline for Preserve ajax call status

Current License: CC BY-SA 4.0

6 events
when toggle format what by license comment
Aug 17, 2018 at 11:21 history edited Ajay Reddy CC BY-SA 4.0
Changes in Answer
Aug 17, 2018 at 11:08 comment added Ajay Reddy Not possible. Disabled fields do not get submitted in form submit. The only way is to hide the secondary fields (create 2 more fields and hide that) and with JS you have to alter hidden field values. In this way you get the values,
Aug 17, 2018 at 10:50 comment added Javier Rey Get the selected radio element and store it in the ajax callback. So then I could set it as "default_value" or smth into the form.
Aug 17, 2018 at 10:46 comment added Ajay Reddy I didn't get you here... What are you saying is getting the disabled value in $form_state? If that is the case, you won't get the disabled Value in $form_state.
Aug 17, 2018 at 10:43 comment added Javier Rey Now returns the first option, "frequency" enable and "pattern_days" disabled. Probably could work saving the value in form_state['storage'] in the AJAX callback. I'm a little bit lost now.
Aug 17, 2018 at 10:08 history answered Ajay Reddy CC BY-SA 4.0