Forum Discussion

MikeKlausing's avatar
MikeKlausing
Qrew Assistant Captain
6 years ago

Next Button on a Multi Tabbed Form

I have a multi tabbed form that I want a next button at the bottom of the first tab that when clicked opens up the second tab automatically. I tried following the article here: https://community.quickbase.com/quickbase/topics/how-do-i-create-a-button-that-allows-the-user-to-continue-to-the-next-tab

I walked through all of the steps and have a button on my form that says "next" but it doesnt do anything when I click on it. Is there any other explanation as to where I may be messing this up? 

Heres what I have: 

Next button on form: Rich text formula:   [customButtonScript1]    & "SaveAndNextTab.js"
    & [customButtonScript2]
    & "' class='Vibrant' style='color:white; background:#427cd8; white-space:nowrap;'>Next</a>"
   & "<a class='Vibrant Danger' style=\"width:180px; text-align: center;\" onclick='DoSaveAndNext()' href='#'>23B. Save and Next</a>"


Home url: https://elginservicecenterinc.quickbase.com/db/bpgjc56je

New page: title: SaveAndNextTab.js     
text:
 var nextTabLink=$("li.ui-tabs-selected").next().children("a"); 
$("#saveAndKeepWorkingMenuOption").click(); 
$(nextTabLink).click();

Variable 1 title: customButtonScript1
text: <a href='javascript:($.getScript("https://elginservicecenterinc.quickbase.com/db/bpgjc56je?from=myqbe=";

Variable 2 title: customButtonScript2

Text: "));void(0);