Forum Discussion
EmberKrumwied
10 months agoQrew Officer
var text rid =
If([CID]>0,
ToText([CID]), // Record ID already exists
"%%rid%%" // New record, no Record ID exists yet
)
;
var text url = URLRoot() & "db/" & Dbid() & "?a=er&rid=" & $rid;
"<a class='Vibrant Primary SaveBeforeNavigating OpenAsPopup' data-replaceRid=true href='" & $url & "'>Save & Refresh Pricing</a>"
hueyal
10 months agoQrew Cadet
It appears you cannot use SaveBeforeNavigating and OpenAsPopup together (in Formula Rich Text field). I'm not sure if using both is the cause of the error; however, both most likely would not be applied.
See: https://helpv2.quickbase.com/hc/en-us/articles/4570366896532-Configure-URL-Fields
It states:
Features when working with formula-rich text fields
The features and capabilities include:
- When you open a formula url as a pop-up, you can set a website to open in a popup window or a new tab. You can use this same functionality with formula-rich text by applying the CSS class (OpenAsPopup).
- Use the CSS class (SaveBeforeNavigating) inside of a formula-rich text field and Quickbase will save the record before navigating.
Note: Only one of these workflow classes is supported per formula-rich text.