Forum Discussion

MikeTamoush's avatar
MikeTamoush
Qrew Commander
3 years ago

Open record in edit mode and set fields

If I want a button to open a record in edit mode, but also set fields, do I need to do this in two steps?

Edit Record API (?a=API_EditRecord") followed by simply opening the record? Can this be done in one step?

I feel like I have done this before but am forgetting.

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

2 Replies

  • because the URL ?a=er ... is not an API like API_GenAddRecordForm you cannot preload values when opening a record to edit.

    You could actually do the edit API_EditRecord on the record and then land the user in edit mode, but the record will have been edited and saved before the form is opened.

    ------------------------------
    Mark Shnier (YQC)
    mark.shnier@gmail.com
    ------------------------------
    • MikeTamoush's avatar
      MikeTamoush
      Qrew Commander
      Thanks Mark. That is what I assumed. Ill just run the API Edit record first, thanks!

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