Hi Justin
I've later found out that Aruba used some custom made software to suppress the print dialog. Thats nifty, but not something I can eaily reproduce.
So I added javscript to do autoprint with a redirect back to the registration page, and then tried the various kiosk modes available in the different browsers.
In Chrome I was able to get it working, but it wasn't as stable as I'd like it to be. I always had to do the print dialogue manually once first, and then the rest would be completely automatic. So this is definately viable, but not optimal.
In IE I tried some vb and javascripts that triggered an activeX component, but that didn't work at all.
Then for FireFox I added the mKiosk addon, and that did the trick for me so atleast for the auto-print that part is solved. It does open a new window to trigger the printing, then closes it and redirects back to the startpage after a few seconds..
I still don't approve that the guest will have to input the correct email address or the exact CN of the sponsor to get a correct AD lookup. That's miles behind any other normal visitor registration system I know of...
The setup...
First I had to find a way to clear all the input fields. Even with disabling the "save value" thing in both the browser and in the field setup the form always remembered the previous values after my redirect..
So I had to reset it through a script in the footer of the registration page:
<script type="text/javascript">
{literal}
var elements = document.getElementsByTagName("input");
for (var ii = 0; ii < elements.length; ii++) {
if (elements[ii].type != "submit" && elements[ii].type != "hidden") {
if (elements[ii].type == "checkbox") {
elements[ii].checked = false;
}
else
{
elements[ii].value = "";
}
}
}
{/literal}
</script>
For auto-printing I added this to my receipt footer:
{literal}
<script type="text/javascript">
window.onload=function(){
Nwa_OpenPrintWindow('guest_receipt.php?id=10');
return false;
}
setTimeout("window.location='/guest/reception.php'",6000)
</script>
{/literal}
The id here corresponds with the id of your Printing Template. You can find the id by hovering over the Edit link below a Print Template..
For the browser I used FireFox with the mKiosk addon.
... and that should be it :)