Forum Discussion
DeanOusterhout
10 years agoQrew Assistant Captain
Thanks Dan...
A problem I am having is that when I create my own save button that executes a javascript file, I get prompted with a "Save" or "Don't Save". When I click the "Don't Save" all the variables get passed to the script and it works fine. However, if I click the "Save" (Which is the intuitive thing to do and what my users will want to do) none of the parameters are passed to the script.
How do you solve this problem? (I greatly appreciate your thoughts on this)
Quickbase support has not been able to help with this. Ideally, there would be no prompt and the script would be called with all the associated parameters.
Here is my save button code:
"javascript:" &
"var TaskName=" & "'updateEventLead'" & ";" &
"var RelatedLead=" & [Related Lead] & ";" &
"var RelatedProject=0" & ";" &
"var Status=" & [setStatusToSendToUpdateScript] & ";" &
"var RelatedWorkflow=" & [Lead - Related workflow] & ";" &
"var WorkflowTask=" & [WorkflowTask] & ";" &
"var AssignedTask=" & [AssignedTask] & ";" &
"var DateNow='" & Now() & "';" &
"$.getScript('https://mycompany.quickbase.com/db/xxxxxxxx?a=dbpage&pagename=z_Main_Javascript_Processor.js');"&
"void(0);"
A problem I am having is that when I create my own save button that executes a javascript file, I get prompted with a "Save" or "Don't Save". When I click the "Don't Save" all the variables get passed to the script and it works fine. However, if I click the "Save" (Which is the intuitive thing to do and what my users will want to do) none of the parameters are passed to the script.
How do you solve this problem? (I greatly appreciate your thoughts on this)
Quickbase support has not been able to help with this. Ideally, there would be no prompt and the script would be called with all the associated parameters.
Here is my save button code:
"javascript:" &
"var TaskName=" & "'updateEventLead'" & ";" &
"var RelatedLead=" & [Related Lead] & ";" &
"var RelatedProject=0" & ";" &
"var Status=" & [setStatusToSendToUpdateScript] & ";" &
"var RelatedWorkflow=" & [Lead - Related workflow] & ";" &
"var WorkflowTask=" & [WorkflowTask] & ";" &
"var AssignedTask=" & [AssignedTask] & ";" &
"var DateNow='" & Now() & "';" &
"$.getScript('https://mycompany.quickbase.com/db/xxxxxxxx?a=dbpage&pagename=z_Main_Javascript_Processor.js');"&
"void(0);"