Skip to main content
Question

Limit Width of Accordion Form element ?

  • April 6, 2017
  • 0 replies
  • 35 views

Within our primary form in an app, the accordion components are running very wide on the form/display.  Is there a way to somehow limit the pixel width within the (text) formula?  Right now - it purposes this piece of code:

"<img qbu=\"module\" src=\"/i/clear2x2.gif\" " &"onload=\"javascript:if(typeof QBU=='undefined'){QBU={};$.getScript('" &
URLRoot() &
"db/" &
Dbid() &
"?a=dbpage&pagename=accordion.js&v=001')}\">"


I would think a limit of 1300 pixels would be ideal. Thanks for any advice, G
This topic has been closed for replies.

  • Quickbase Alumni
  • April 6, 2017
Okay so you are injecting the script in the code page named accordian.js into a QuickBase page using the IOL technique.. 

We have no idea what accordion.js does and there is no screenshot of the width problem you are experiencing.

  • Author
  • Quickbase Alumni
  • April 6, 2017
The script is creating horizontal button links to tables down within the form. See pic. Sorry if I am under-describing the need here, I am a novice at this level. From the pic, you can see the navigation runs wide to the right and off of the layout/resolution.  I would like to limit this - so that the navigation breaks at 1200-1300 pixels - if that's even possible.



Thanks for the prompt reply and advice.

  • Quickbase Alumni
  • April 6, 2017
This "accordion" function is using some css styling that is more than likely kept in a CDN file and just called from your code page "accordion.js"  you will need to do one of two things (or both),

1- adjust the css in the code page to override the CDN styling.
And/Or
2- Remove / combine some of your section headings.  It picks up on which section headings you have, so by reducing that list, you may be able to get it into one line.