Ahh I think I see what the issue may be.
Create a Rich text field
I created one just now to test:
//-- create variable for the record id
var text rid =
If([Record ID#]>0,
ToText([Record ID#]), // Record ID already exists
"%%rid%%" // New record, no Record ID exists yet
)
;
// -- create variable that has the url link to where you want to go
var text redirect =URLRoot() & "db/" & Dbid() & "?a=printr&dfid=11&rid=" & $rid;
//-- the text in bold is the variable that has the record id in it
"<a class='SaveBeforeNavigating' data-replaceRid=true href='" & $redirect & "'>Generate Print</a>"
I think this should work, but I have never used that Print feature before so I am not sure. You shouldn't have to redirect anything in this case since you are just sending them to print the saved form. But no promises.
------------------------------
Ursula Llaveria
------------------------------