I had a large form which auto logged even though there was activity in the form. We need misc/form.js to bind "formUpdated" to form inputs and trigger it on any change in the form. This js is not added to all forms by default.

So I had to add the code below in my form callback function to add it.

drupal_add_library('system', 'drupal.form');

Shouldn't we add this in the documentation/README.txt about this?

Comments

zuhair_ak created an issue. See original summary.

zuhair_ak’s picture

Title: Site autologed out even if there is activity in custom form » Site autologged out even if there is activity in custom form
deaom’s picture

Status: Active » Closed (works as designed)

No activity in past 2 years, so this is closed as it works as designed.