Forum Discussion

MichaelCurtis's avatar
MichaelCurtis
Qrew Cadet
8 years ago

A button that saves then fires off [iol]?

I am currently using a button to launch google calendar with all of the appointment information to add an event to google calendar. The problem is first you have to save then you can use the button. I am wondering if I can make this button save and fire off the image on load code?
would something like this work


"javascript:DoSaveAdd()"
[iol] & "calendar.js" & [/iol] &
"<a class='QBU_Button Vibrant Primary' " &
"  data-title='" & [Name for Appointment (F)] & "'" &
"  data-start='" & [Appointment Date] & "'" &
"  data-end='" & [Appointment Date] & "'" &
"  data-location='" & [Appointment Location] & "'" &
"  data-address='" & [Project Record - Project Address] & "'" &
"  data-startTime='" & [Start Time] & "'" &
"  data-endTime='" & [End Time] & "'" &
"  data-details='" & [Appointment Description Project] & "'" &
"  data-serviceAddress='" & [Service Record - Project Record - Project Address] & "'" &
"  data-leadaddress='" & [Project Record - Lead - Potential Job Address] & "'" &
"  data-team='" & [Team Origin] & "'" &
"  data-servicedetails='" & [Appointment Details Site Survey] & "'" &
">Add To Calendar</a>
No RepliesBe the first to reply