Forum Discussion
Hi Chayce,
The issue is that the button won't do the passive save if clicked from an ifv=1 form.
If I click the button on the native form, it works as intended.
When we click on the button on the same form but with ifv=1, it pops up with the "You must save this Login first" as shown in the original post.
------------------------------
Danielle Wilczewski
------------------------------
Can you copy the formula for that button here? I tried testing what I assumed was your scenario using both the API_GenAddRecordForm and nwr URL patterns, both with no issue when using SaveBeforeNavigating and it operating as intended with ifv=1.
From your screenshot - can you just confirm that when you're testing this you're actually changing something on the record? Like actually entering/changing at least one field? If you're not entering any data and then clicking the button - the behavior might be a little odd since it's not registering potentially that there is anything to save.
------------------------------
Chayce Duncan
------------------------------
- DanielleWilczew10 months agoQrew Member
Yeah, I was adding an email address (it's required to get the button to show) but then i was blanking it out in the screenshot bc habits lol.
Here is the formula:
var text url = URLRoot() & "db/" & [_DBID_Landing_Pages] & "?a=API_GenAddRecordForm&dfid=12&_fid_6=" & URLEncode ([Related Person])& "&z=" & Rurl();
"<a class='"&[GV_AppButtonClass]&" SaveBeforeNavigating' style='color: white; display:inline-block; white-space:nowrap; background: #b532b5; border:1px solid #999; text-align:center; text-decoration:none' href=\"" &
$url
& "\""
& ">Create New Report/Request</a>"And again, it's weird, because it works just fine when not in the ifv. I may be able to do a screengrab of the behavior - showing it works in regular, but not in ifv.
------------------------------
Danielle Wilczewski
------------------------------- ChayceDuncan10 months agoQrew Captain
I would suggest a screengrab and potentially pass that to QB support. I can't tell from your screenshot what browser you're using if that might be causing an issue or if it's something to do with the data being entered/triggering the save. When testing on Chrome I'm not getting the same issue but QB support might be able to see something I don't with access unless someone else from the forum chimes in.
------------------------------
Chayce Duncan
------------------------------- DanielleWilczew10 months agoQrew Member
Thanks, I'm gonna open a ticket. Here's the screengrab in case you wanna take a peak and see anything i don't.... :-)
Also - the browser i'm using is Arc (Chrome-based) and my teammate is using Opera, and it's doing the same thing on both.
------------------------------
Danielle Wilczewski
------------------------------