Forum Discussion

RobertRufli1's avatar
RobertRufli1
Qrew Member
4 years ago

Add New Record Button

I would like to be able to have the Add New Record Button on a Home page that would open the new record form and populate a field or two with some data.  but I cant edit the buttons properties in a button bar when building a page.

Any ideas?

------------------------------
Robert Rufli
------------------------------

1 Reply

  • np,
    just did this yesterday.

    Make a button somewhere in your app which does what you want.

    for example here is a button to populate a field with fixed data.

    URLRoot() & "db/" & [_DBID_PSYCHOLOGIST_VISITS] & "?a=API_GenAddRecordForm"
    & "&_fid_11=Psychologist"
    & "&_fid_12= & URLEncode("Visit is Approved")
    & "&_fid_13= & URLEncode("yada yada yada")


    Then instead of having it be a button appearance with Link text, leave the Link Text  blank and it will expose the code on the record that the button is on.   Copy that code onto your clipboard and go to the dashboard and just make a button of tape URL and paste that in.

    So that's all working of course you can remove that button from your example record form because the only purpose of the button to generate the code.

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