- Mark as New
- Follow
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report
Hi,
Glad you have got it to work!!
Yes, DataStamp was a typo on my part.
In addition, in the version I posted I had commented out (//) the print script, to save paper when testing. You might delete the //.
In LC the dateStamp field is hidden and looks at the user entered date field. If that is null it sets its own value to the system date. When the user inputs a date the dateStamp field gets that value. I set the pattern to YYYY-MM-DD so that all of the files would be in chronological order. I would nearly be inclined to leave it at a date stamp and not bother with the time stamp. The issue will be if you expect the same patient to complete the form multiple times in one day.
At the moment the caption that saves the file is "print". The button does more than that, so I was just suggesting changing the caption to reflect that the file would be saved.
At the moment when the file is saved, the new file name will appear in the blue (application) bar at the top of the window (if this is visible in the kiosk). Within LC you could set up an app.alert to confirm the file is saved after the trusted function script in the button.
With the MRN# you could change the presence of the button to visible once the MRN# is not null. Otherwise you will have to "train" the staff member to hit a particular white section of the form. Also consider tooltips, which you can script for. If MRN# is null; then button tooltip is "". When MRN# is not null; then button tooltip is "Click here to email form..."
Lastly I would expect the file path to work where folder names have spaces (it already works for file names with spaces).
Your are welcome. Good luck with the rest of the form,
Niall