Has anyone sent an email using script from within a form? I know the code for normally sending an email would be something like:
document.forms[0].action = "mailto:" +document.forms[0].recipient.value +"?subject=" +document.forms[0].subject.value;
But can I do that in a form?
You *should* be able to do that, adding document.forms[0].submit() to actually submit the form. Remember, though, that since Javascript is a client-side app, what's really going to happen is that it will launch the user's email app, not send the email via the server. To do that is a whole different story.
Terry, you can add a service yourself to do this...
Jojo, that is correct. The only thing that needs to be added is that you have to create a service to which the Design Studio trigger gets connected.
Ok - to get my feet wet, I did the following:
What I expect to happen is when ever I do an inquire on the screen it will also send an email. It doesn't. All it does is retrieve the data and say "inquiry complete".
Did I forget a step or what? Is there some way to trace or see that it is trying to run the service?
John -
I did a similar setup and I'm unsuccessful in kicking off my flow from the trigger.
Nothing shows in PF Admistrator when triggered from the custom page. I was able to start the flow from the service using wfwk so I think my problem is the trigger itself. We are on 8.0.3. Could this be the issue?
Brian - make sure on the "Actions" tab of the document properties (the one where you assigned it to the Add action) that you click the "Work Flow Enabled" box.
Thanks Terry - I verified the checkbox but it was checked. I have not added additional code in the form so I don't think I'm experiencing what you did. Any other ideas?
Did you check to see if a work unit was created in WF20.1? Email me at pickering@4j.lane.edu