Save and Submit Button on Mobile

  • 0
  • 1
  • Question
  • Updated 7 months ago
  • In Progress
Hi All, I am trying to complete my "Save and Submit" button on the mobile app, to save comments and file attachments.  I have created the button, and it works well on the desktop. I can edit record, click on the button and it saves the record and redirect to homepage.  However on the mobile app, the button works only 50%, as when i click on the button, it reloads the form and present me with the standard save button, it doesnt save automatically and redirect back to homepage.  I need to clock on the standard save button at the bottom of the form to save and direct to homepage.
What is wrong with my url button code? or is this a limitation on quickbase mobile?

var text Update=URLRoot() & "db/" & Dbid() & "?act=API_EditRecord&rid=" & ToText([Record ID#]) 
& "&_fid_9=" & 
"&apptoken=65zusbcixqngsbqnkhn39juqdk";


"<a  id='saveButton' class='Vibrant Primary' onclick='DoSaveAdd()' href='javascript:LinkAway(\"" & URLRoot() & "db/" & Dbid() & "?a=showpage&pageid=452" & "\");' >Submit & Save</a>"
Photo of Paul Vorster

Paul Vorster

  • 556 Points 500 badge 2x thumb

Posted 7 months ago

  • 0
  • 1
Photo of Matthew Neil

Matthew Neil

  • 31,438 Points 20k badge 2x thumb
Try removing the
onclick='DoSaveAdd()'  
and just use the linkaway.

Keep in mind that the checkbox to 'save the parent automatically' needs to be checked in the table settings.
Photo of Paul Vorster

Paul Vorster

  • 556 Points 500 badge 2x thumb
HI Matthew, thank you for responding, it is still not working.  What we actually need is to create a button that replicated the current save and close button, then it will resolve my issue.  I am not sure if you have access to this code, or can suggest how to do it?
Photo of Matthew Neil

Matthew Neil

  • 31,438 Points 20k badge 2x thumb
Formula-rich text:
"<a class='Vibrant Success' onclick='DoSaveAdd()' href='#'>Save</a>"

Formula URL:
"javascript:DoSaveAdd()"

I just pulled these from the 'magic buttons' app.