Skip to main content
11 events
when toggle format what by license comment
Sep 11, 2013 at 13:35 comment added Mołot @JayendraKainthola dpr( $form['field_value_first']) and see if you are adding ajax to something with '#type' => 'textfield'. It will not work if you happen to add it to some wrapper.
Sep 11, 2013 at 13:33 comment added Jayendra Kainthola Ajax request is never sent. I checked firebug consule, but it did not display any ajax path.
Sep 11, 2013 at 13:31 comment added Mołot @JayendraKainthola define "not working" please. AJAX request is never sent? or is sent and returns with status 500? or what exactly happens?
Sep 11, 2013 at 13:28 comment added Jayendra Kainthola Before, I did not set ['#ajax']['event'] and it was not working for me. Then I tried to set ['#ajax']['event'] and hope that it work. Trying with other option but not working.
Sep 11, 2013 at 13:20 comment added Mołot @JayendraKainthola yea, your comment made me update my answer :)
Sep 11, 2013 at 13:19 comment added Jayendra Kainthola I added comment before I got your update answer.
Sep 11, 2013 at 13:16 comment added Mołot @JayendraKainthola answer updated
Sep 11, 2013 at 13:16 history edited Mołot CC BY-SA 3.0
added event
Sep 11, 2013 at 13:13 comment added Jayendra Kainthola Yes, you are right. But issue is that when I enter any value in field_value_first and leave it, ajax does not work on the same. I have add print_r in the ajax callback only to check ajax is working or not.
Sep 11, 2013 at 13:10 history edited Mołot CC BY-SA 3.0
removed unneeded part of code
Sep 11, 2013 at 13:01 history answered Mołot CC BY-SA 3.0