These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Unique Subject When Email

Ingrampc
Registered: Apr 18 2009
Posts: 13

I've created a form collects information from a group of employees. I have these emailed to me. I receive about a 1,000 per week. I need these emails to generate a unique name for each email, something this will never repeat.

Here is my script

event.target.submitForm

({cURL:"mailto:name [at] hello [dot] com?subject=Need Unique string Here &body=Please find attached the completed Start Sheet.",cSubmitAs:"XML",cCharset:"utf-8"});

Thanks,
Patrick

My Product Information:
LiveCycle Designer, Windows
garath
Registered: Mar 24 2009
Posts: 49
Maybe current datetime string? It can repeat, but probability is almost zero.

In my opinion to generate 100% unique string you will have to create post request to your server, which will generate unique numbers
Ingrampc
Registered: Apr 18 2009
Posts: 13
I think something tied to the date/time and/or other fields would do it. How would you see that expression? I'm pretty new at this.

Thanks,
Patrick
garath
Registered: Mar 24 2009
Posts: 49
An example Javascript expression is:
var d = new Date();app.alert(d.getTime());

So your code could look like this:
({cURL:"mailto:<span class="spamspan"><span class="u">name</span> [at] <span class="d">hello [dot] com</span></span>?subject="+d.getTime()+ "&body=Please find attached the completed Start Sheet.",cSubmitAs:"XML",cCharset:"utf-8"});
I didn't check it, but it should work:)
Ingrampc
Registered: Apr 18 2009
Posts: 13
So my script ends up looking like this under the "click" function

var d = new Date();
app.alert(d.getTime());

({cURL:"mailto:name [at] hello [dot] com?subject="+d.getTime()+ "&body=Please find attached the completed Start Sheet.",cSubmitAs:"XML",cCharset:"utf-8"});It doesn't seem to work - just sits there.

Sorry, been away for a few weeks. Thanks for your response...
Patrick