Forum Discussion
GeorgeBramhall2
4 years agoQrew Cadet
This code does it all in one shot (creates pop, checks box and then closes the window). However I want to have the user manually check the box on the pop up form (giving the user a moment to think about what they are about to do) and then save the record and have the pop up close.
var text url = URLRoot() &"db/" & Dbid() & "?act=API_EditRecord"& "&rid=" & [Record ID#]
& "&_fid_1046=1"&
"&rdr=" & URLEncode(URLRoot() & "db/" & AppID() & "?a=dbpage&pageid=21") ; // Open code page 21 to close the popup
// data-height/width dictate the size of the popup
// data-refresh refreshes the source page once the popup is closed
// title provides the tooltip
If([Ready for Dispositions]=false,"<a class='Vibrant Danger OpenAsPopup' href='" & $url & "' data-height=500 data-width=500 data-refresh=true title='Clicking this button will open a popup'>Remove</a>")
------------------------------
George Bramhall
------------------------------
var text url = URLRoot() &"db/" & Dbid() & "?act=API_EditRecord"& "&rid=" & [Record ID#]
& "&_fid_1046=1"&
"&rdr=" & URLEncode(URLRoot() & "db/" & AppID() & "?a=dbpage&pageid=21") ; // Open code page 21 to close the popup
// data-height/width dictate the size of the popup
// data-refresh refreshes the source page once the popup is closed
// title provides the tooltip
If([Ready for Dispositions]=false,"<a class='Vibrant Danger OpenAsPopup' href='" & $url & "' data-height=500 data-width=500 data-refresh=true title='Clicking this button will open a popup'>Remove</a>")
------------------------------
George Bramhall
------------------------------
MikeTamoush
4 years agoQrew Elite
I didn't set up a code page, but quickly tested Marks suggestions. I think that should work, it certainly appears the NextURL is firing.
Also, I didnt know about the title CSS so I can hover and see a message on a button. I'm going to use that!
------------------------------
Mike Tamoush
------------------------------
Also, I didnt know about the title CSS so I can hover and see a message on a button. I'm going to use that!
------------------------------
Mike Tamoush
------------------------------
- MikeTamoush4 years agoQrew EliteDang. I just tested. Works like a charm with the add record api. But I also cant get it to work with any type of edit. Not sure why....
------------------------------
Mike Tamoush
------------------------------