Forum Discussion

JENNIFERPASCHAL's avatar
JENNIFERPASCHAL
Qrew Trainee
5 years ago

URL Formula Edit Record

Hi

I have a URL formula (screenshot and text below) that is only partially working. When the button is clicked, the edit record piece is not working. There is no error thrown but the fields defined in that part of the formula (highlighted/underlined in red) remain unchanged. The add record piece is working just fine.

Can you help me spot the issue?


If([Status] != "CIA Draft Saved",URLRoot() & "db/" & [_DBID_TABLE_1] & "?act=API_EditRecord&rid=" & [Record ID#] & "&_fid_94=true&_fid_43=CIA Submitted" & "&rdr=" & URLEncode(URLRoot() & "db/" & [_DBID_RETURN_TO_SUBMITTER_NOTES] & "?act=API_GenAddRecordForm&_fid_8=" & [Record ID#] & "&_fid_7=Return to Submitter&_fid_12=" & [Date Created] & "z=" & Rurl()),"")



------------------------------
Thanks in advance,
Jennifer Paschal
------------------------------
  • It might be due to the lack of URLEncoding of content with spaces.




    If([Status] != "CIA Draft Saved",
    URLRoot() & "db/" & [_DBID_TABLE_1] & "?act=API_EditRecord&rid=" & [Record ID#]
    & "
    &_fid_94=true&_fid_43=" & URLEncode("CIA Submitted") 

    & "&rdr=" & URLEncode(URLRoot() & "db/" & [_DBID_RETURN_TO_SUBMITTER_NOTES]
    & "?act=API_GenAddRecordForm&_fid_8=" & [Record ID#]
    & "&_fid_7=" & URLEncode(Return to Submitter) & "&_fid_12=" & [Date Created]

    & "z=" & Rurl()),"")


    ------------------------------
    Mark Shnier (YQC)
    Quick Base Solution Provider
    Your Quick Base Coach
    http://QuickBaseCoach.com
    mark.shnier@gmail.com
    ------------------------------
    • JENNIFERPASCHAL's avatar
      JENNIFERPASCHAL
      Qrew Trainee
      Thank you! I updated formula as shown (had to make one change; added quotes to this URLEndcode("Return to Submitter")) but still no luck on the edit record i.e fields 94 and 43 were not updated.

      ------------------------------
      Thanks in advance,
      Jennifer Paschal
      ------------------------------
      • MarkShnier__You's avatar
        MarkShnier__You
        Icon for Qrew Legend rankQrew Legend
        Are you editing the correct Table?  Is [_DBID_TABLE_1] the correct table?

        ------------------------------
        Mark Shnier (YQC)
        Quick Base Solution Provider
        Your Quick Base Coach
        http://QuickBaseCoach.com
        mark.shnier@gmail.com
        ------------------------------