Modify the button formula URL to remove JavaScript code
Please follow the steps provided on this page to modify the button formula URL in your Quickbase apps and individual tables.
In this example, we show you how to modify the formula code for our QB Signatures button formula.
This formula is very similar to all of our extension formulas, so it can be used as a model for any extension.
When modifying the button formulas, be sure to focus on the first and last lines of code.
Note
Below is how your button currently looks with JavaScript inserted. The section highlighted in yellow is removed by the end of the steps on this page.
In the first line of your button formula, copy and paste the code below between the slashes. You must copy and paste this exactly as it appears below.
URLRoot () & "/db/" & Dbid () & "?a=dbpage&pagename=JuicedAddonPopup.html&url=" &Copy this line of code exactly as shown above.
Paste that line of code into the first line of your button formula.
Example of how this should look after you insert the line of code from step 1:

Remove just the highlighted part from the formula as shown below.
Note
Keep the quotation mark at the start of line 2 so the URL is still in quotes once the JavaScript is removed.
Delete the single quote at the very end of the highlighted portion of the formula below.

After you remove the JavaScript code, the button formula looks like the example below. Your individual URL is different, which is expected.

Remove the highlighted lines from the bottom of the formula.

After you remove the JavaScript code, the button formula looks like the example below. Your individual URL is different, which is expected.

Add the three lines of code found between the slashes below.
The rdr parameter in the bottom of the formula is the parameter that helps redirect you back to the same record that you pressed the button from.
Note
The top two lines of code control the height and width of the popup window from the button formula. To control the height and width, change 700 and 650 to your desired popup window size. If you modify the popup window size, be careful not to delete the ending double quotes.
& "&jswidth=700" & "&jsheight=650" & "&rdr="&URLEncode( URLRoot() &"db/" & Dbid() & "?a=doredirect&z=" & Rurl())Copy these three lines of code exactly as shown above.
Paste those three lines of code into the last line of your button formula.
Example of how this should look after you insert the lines of code from step 5:

After making all these changes, select Save for the button formula, then select the button to confirm everything is working as intended.

