Forum Discussion
GeorgeBramhall2
3 years agoQrew Cadet
Not sure if I was clear. I want the button on the form to update the record (check a checkbox) and then close the form (pop-up)
------------------------------
George Bramhall
------------------------------
------------------------------
George Bramhall
------------------------------
- MarkShnier__You3 years agoQrew LegendI think that this would require a code page. But I'm not that kind of a coder.
------------------------------
Mark Shnier (YQC)
mark.shnier@gmail.com
------------------------------- MikeTamoush3 years agoQrew CommanderIf you go to this link:
https://resources.quickbase.com/db/bq8kmgrcq
Then click on the examples. The second example is titled : Add Child in Popup w/ Auto Close on Save - Rich Text
It gives you a code page, and then a NextURL statement to call that code page. Admittedly, I haven't tried it, but I told myself I need to experiment with that as soon as I have the need again!
To me, this solution only will work in instances where &NextURL will work. I know NextURL works in conjuction with the add record api, but not sure about edit record?
------------------------------
Mike Tamoush
------------------------------- GeorgeBramhall23 years agoQrew CadetOk I built the close window page per the site you shared.
but
I get this error
<qdbapi><action>API_EditRecord</action><errcode>0</errcode><errtext>No error</errtext><rid>7484</rid><num_fields_changed>1</num_fields_changed><update_id>1645809864144</update_id></qdbapi>
...when I click the rich text button with this code:
var text Update = URLRoot() &"db/" & Dbid() & "?act=API_EditRecord"& "&rid=" & [Record ID#]
& "&_fid_1046=1";
var text RefreshPage = "&NextURL=" & URLEncode(URLRoot() & "db/" & AppID() & "?a=dbpage&pageid=21&z=");
"<a class='Vibrant Danger OpenAspopup' href='" & If([Ready for Dispositions]=false,$Update
& $RefreshPage)& "' data-height=500 data-width=500 data-refresh=true title='Clicking this button will open a popup'>Confirm EM/DD Removal</a>"
and pop doesn't close.
Any ideas?
------------------------------
George Bramhall
------------------------------