Rename Save button to Submit

  • 0
  • 1
  • Question
  • Updated 10 months ago
  • Acknowledged
Is there a way to rename the Save button to say Submit instead?
Photo of Brian Finkle

Brian Finkle

  • 70 Points

Posted 1 year ago

  • 0
  • 1
Photo of Gaurav Sharma

Gaurav Sharma

  • 5,808 Points 5k badge 2x thumb
Hi Brian,

It is not possible natively. But, yes it is possible with some script.

Do let me know if you would like to know about the script solution.

Thanks,

Gaurav
Photo of Joe Baez

Joe Baez

  • 122 Points 100 badge 2x thumb
Can you show this to me as well Gaurav?
Photo of Nick Davis

Nick Davis

  • 352 Points 250 badge 2x thumb
With IOL, this code should do the trick. 

$(".saveBtn, [id$=MenuOption]").each(function() {
        let text = $(this).text().replace('Save', 'Submit');
        $(this).text(text);
    });
Photo of Nick Davis

Nick Davis

  • 352 Points 250 badge 2x thumb
With the help of Chrome's native Dev tool (hit f12 and start exploring). 
Photo of Michael Curtis

Michael Curtis

  • 596 Points 500 badge 2x thumb
Very nice so I have this code

var cell = $(".cell")
console.log(cell[3].innerText)

and it works when the file is saved but in edit or new, it doesn't et the value.
I made a button that sends a POST to google calendar. but I want the button to send a post and save the document.
Photo of Joe Baez

Joe Baez

  • 122 Points 100 badge 2x thumb

Thanks Nick. Stupid question...whats IOL?

Photo of Nick Davis

Nick Davis

  • 352 Points 250 badge 2x thumb
Not a stupid question at all. The Image Onload (IOL) technique is a way of injecting some user-supplied JS into Quick Base. It allows for a lot of non-native clean up and functionality.

Here is the link to Danimal's trusty setup guide.  
Photo of Ⲇanom the ultimate (Dan Diebolt)

Ⲇanom the ultimate (Dan Diebolt), Champion

  • 28,304 Points 20k badge 2x thumb
Thanks Nick! Another perspective on IOL is that it is the oldest of the JavaScript injection techniques. Here is an updated list of the general categories of injection techniques including the newest technique called LO (Local Override)

=================================================

This is mostly an exercise in writing HTML in the forum but I though I would list the some pros, cons and examples of the various techniques.

IOL - Image Onload

Pros:

  • Oldest and Most Deployed Injection Technique
  • Simple Setup with Two User Variables
  • Pastie Database With Hundreds of Examples

Cons:

  • Works Only on {new, view, edit, report & grid} Pages
  • Does not Not Work on Administrative Pages or Chart Pages
  • Do not Have Complete Control Over When Script Executes

Use Cases:

  • Field Validation, Conversion, Transformation
  • Lookup Services
  • Widget Integrations

BOL - Branding on Load

Pros:

  • Works on All Pages in Application Once Setup
  • Script Executes Early in Page Rendering Process

Cons:

  • Totally Dependant on Current QuickBase's Branding Interface
  • More Extensive Decoding Logic Needed to Produce Page Specific Behavior

Use Cases:

  • Custom Branding HTML
  • Inject Script into Administration and Chart Pages

SW - Service Workers

Pros:

  • SW Can Do Just About Everything - god Mode for QuickBaase
  • New Capabilityies: Offline, Sync, Notifications
  • Support in All Major Browser - In Development for Safari

Cons:

  • Scope of SW is individual Table or entire Account (no Application scope)
  • Requires Developer Well Verse in Asynchronous Scripting
  • Can be Tricky to Demo, Debug, and Administer

Use Cases:

  • To Many to Enumerate

US - User Script

Pros:

  • Large Repositories to Draw On
  • Many Utility Functions: Download, Table Manipulation etc

Cons:

  • Must be Manually Installed
  • Specific to Brower
  • Greasemonkey and TamperData Popular

Use Cases:

  • Many and Varied
  • Many Generic Page Manipulation Capabilities

OEH - On Error HTML

Pros:

  • Similar to IOL but Without Using Codepage
  • Encodess JavaScript into  Attribute
  • Some Users Prefer Defining Script Exclusively Through Formula

Cons:

  • Best Used for Short Scripts
  • Not Very Human Readable
  • Generated Through Wizard

Use Cases:

  • Counting Records, Prior Values
  • Arbitrary Custom Functions: sine(x)
  • Over Half Dozen Examples Created

LO - Local Override

Pros:

  • Patch any QuickBase served page (CSS, JS etc) with a local version using devtools
  • Extremely easy to explore QuickBase customization (both style and behavior) and to persist those changes over time

Cons:

  • Only Available in Chrome Canary (Public Release in Chrome 65)
  • Not a lot of community experience using it (brand new but looks promising)

Use Cases:

  • Exploring and demonstrating QuickBase customization without installing anything and persisting changes to your local disk
(Edited)
Photo of Ⲇanom the ultimate (Dan Diebolt)

Ⲇanom the ultimate (Dan Diebolt), Champion

  • 28,304 Points 20k badge 2x thumb
Photo of Joe Baez

Joe Baez

  • 122 Points 100 badge 2x thumb

Hi Dan,

Its not working for me. Is there any way I can call you or you call me?

Photo of Joe Baez

Joe Baez

  • 122 Points 100 badge 2x thumb
excellent! what time?
Photo of Ⲇanom the ultimate (Dan Diebolt)

Ⲇanom the ultimate (Dan Diebolt), Champion

  • 28,304 Points 20k badge 2x thumb
after 10am est
Photo of Joe Baez

Joe Baez

  • 122 Points 100 badge 2x thumb
Fantastic...will do. Thank you!