Forum Discussion

MichaelTamoush's avatar
MichaelTamoush
Qrew Captain
5 years ago

URL Button link javascript as second step

I am using an addon that had a URL button that runs a javascript (Exact Forms Plus Addon from juiced).

I am trying to run an edit record api first, and then run the script. I know traditionally you can nest variables ie $PartOne & "&rdr=" &URLEncode($PartTwo).

However, this doesn't work if part two is the javascript. Does anyone know how to make this work? Is it possible?

------------------------------
Mike Tamoush
------------------------------
  • With EF+, generally speaking, I would not recommend futzing with the button unless you really know what you're doing. If you are comfortable with it, however, you would probably need to change the script to include your Edit call first.

    With that said, what are you trying to accomplish with the Edit call?

    ------------------------------
    Blake Harrison
    bharrison@datablender.io
    DataBlender - Quick Base Solution Provider
    Atlanta GA
    404.800.1702 / http://datablender.io/
    ------------------------------
    • MichaelTamoush's avatar
      MichaelTamoush
      Qrew Captain
      Yes, I am attempting the edit call first. I am simply trying to edit a field, and then run the EFP script. Right now I have what is below. It runs the edit portion but not the redirect.

      var text EditApproval = URLRoot() & "db/" & Dbid() & "?a=API_EditRecord" &
      "&rid=" & [Record ID#] &
      "&apptoken=xxxxxxxxxxxxxxxxxxxxxxxx" &
      "&_fid_9=Approved" ;

      var text GenDoc = "javascript:var wnd = window.open('https://www.aws-juiced-client2.com/Juiced/ExactFormsPlus2/doc_merge.aspx?"
      & the rest of the Juiced Exact Forms Addon code;

      $EditApproval
      & "&rdr=" & URLEncode($GenDoc)

      ------------------------------
      Mike Tamoush
      ------------------------------
      • MichaelTamoush's avatar
        MichaelTamoush
        Qrew Captain
        I found a thread that explains that to redirect outside of your realm, you need to contact support and have them give you those permissions. I am going to try that and I will report back.

        ------------------------------
        Mike Tamoush
        ------------------------------