Skip to main content

Accordion Like Functionality 

 doesn't work in Display mode? I tried changing the Control Mode for the check boxes to Display or Edit mode, but it still didn't work and the edit function also got screwed. I put it back to Auto and Edit is fine now but the display still shows blank. Any tips for this fix?

Hi Imen,

How are you including accordion-type functionality into the form? Are you using jQuery? If so, can you share your code?

Thank you,

Sean Fiene 


Hi sean,

at the level of view item I can not see all the  fields at the level of each section 
and the button section is no longer clickable as the screenshot shows

screenshot for new item


screenshot for new item






sceenshot for view item



I uset this rule and javascript:











var onlyOneSectionVisible = true; var currentVisibleSection = -1;   NWF$(document).ready(function() { });  function fnShowSection(iSection) {   if(onlyOneSectionVisible == true)   {       if(currentVisibleSection != iSection)       {         var controlClass = NWF$('.cssCheckBoxSection' + iSection);         var myInput = controlClass.find('input');         myInput.click();         if(currentVisibleSection != -1)         {           controlClass = NWF$('.cssCheckBoxSection' + currentVisibleSection);           myInput = controlClass.find('input');           myInput.click();         }       }   }   else   {     var controlClass = NWF$('.cssCheckBoxSection' + iSection);     var myInput = controlClass.find('input');     myInput.click();   }    currentVisibleSection = iSection; }   function fnSectionOneClick() {   fnShowSection(1); }  function fnSectionTwoClick() {   fnShowSection(2); }  function fnSectionThreeClick() {   fnShowSection(3); }  function fnSectionFourClick() {   fnShowSection(4); }  function fnPreviousPage() {   if(currentVisibleSection == 1)     return;   if(currentVisibleSection == -1)     fnShowSection(1);   else      fnShowSection(currentVisibleSection-1); }  function fnNextPage() {   if(currentVisibleSection == 4)     return;   if(currentVisibleSection == -1)     fnShowSection(1);   else      fnShowSection(currentVisibleSection+1); }







- condition IsDisplayMode OR IsEditMode OR IsNewMode always evaluates to true, so it doesn't make too much sense

- if you want to make buttons clickable in view mode you have to enable 'Enable when in view mode' in its advanced settings

- I assume you control section's visibility by a value of single checkboxes. so it shows you just field from a section with active check box. likely it is latest active (remembered) from lats item change. if yoou want to show all the fields from all the sections you have to configure rules' formulas so that they do not apply in view mode


Reply