Jonathan_Gibson
4 months agoQrew Cadet
ifv and OpenAsPopup conflict
I have a rich text button for the user to click to make a quick edit, which opens a popup window that leverages a code page to close automatically when saved (following the "CloseWindow.html" pattern illustrated here).
I am attempting to also hide the normal qb UI in the popup window utilizing an ifv parameter, but when I do this the window no longer closes automatically.
My base url is in a field [Edit User Alert]:
URLRoot() & "db/" & Dbid() & "?a=er&rid=" & URLEncode([Record ID#]) & "&dfid=11" & "&z=" & Rurl()My rich text button adds the ifv (currently commented out) and NextURL parameters to the url and sets the class:
var text url = "'" & [Edit User Alert] &
//"&ifv=10" &
"&NextURL=" & URLEncode(URLRoot() & "db/" & AppID() & "?a=dbpage&pageid=5") & "'"
;
...
var text class = "'OpenAsPopup' data-height=600 data-width=850 data-refresh=true ";
...The window closes correctly without the ifv parameter but when it's added the window no longer closes. Where am I going wrong?