CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Discussion (deprecated) »
  • Alpha and Beta Release Testing »
  • 2.1 Release Testing »
  • AJAX not working for custom fields with browser Back button
Pages: [1]

Author Topic: AJAX not working for custom fields with browser Back button  (Read 2633 times)

chrism

  • Guest
AJAX not working for custom fields with browser Back button
August 03, 2008, 08:06:24 pm
The visibility of form elements that are type dependent on the custom field pages are not set correctly after some browser 'Back' navigations.

To recreate on the sandbox:
1. Create a new custom Note field as part of a custom group. Observe the Note dependent form elements (Height, Width, ..) that appear when 'Note' is selected.
2. Select 'Save'
3. Hit 'Back' in your browser.  Observe how the Note dependent form elements are not shown.
4. Click on on the Type field (ie. reselect Note) and observe that the correct form elements then reappear.

Desired behaviour is for pages with AJAX elements to appear consistently when navigating 'Back' o then in a browser. 

This particular example in custom forms isn't a major problem, but if it's symptomatic of a wider issue for all of the new AJAXy pages then it's important.

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: AJAX not working for custom fields with browser Back button
August 04, 2008, 12:29:56 pm
I tried to replicate this behavior with a form that is more complex (and more used) - the "New Event Registration" form from the View Contact Event tab. This form handled the back button case ok - at least in FireFox. I'm not entirely sure we can / know how to fix this for all cases - but if you can identify a few cases that behave in an undesirable way - we can look at them.
Protect your investment in CiviCRM by  becoming a Member!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Discussion (deprecated) »
  • Alpha and Beta Release Testing »
  • 2.1 Release Testing »
  • AJAX not working for custom fields with browser Back button

This forum was archived on 2017-11-26.