This.getField error in app.Mail script

I am having trouble with an app.Mail script I have created in a Lifecycle form.  If I place a this.getField("field_name") line in the script Acrobat Javascript debugger states that the this.getField is not a function.  Also the this.path line returns as undefined in the email message body if bypass the this.getField line.  Perhaps I am mixing up Javascript script and Lifecycle scripting?  If so what needs to be changed for Lifecycle?  I know the app.mail script works without the var lines, but once I add those in is when the problems pop up.  Script listed below.  Thanks!
var cMyMsg = this.path
var Sub = this.getField("Field_Name").value;
app.mailMsg({bUI: true, cTo: "[email protected], cSubject: Sub, cMsg: cMyMsg});

Hi,
Your script is written using Acrobat JavaScript, whereas because you are working in LiveCycle Designer you need to make the script compatible with the LiveCycle Designer form JavaScript.
The code could be changed to this which works in LiveCycle Designer
var cMyMsg = event.target.path
// Assuming the Field_Name field is in the same subform as the button to run the code
var Sub = Field_Name.rawValue;
app.mailMsg({bUI: true, cTo: "[email protected]", cSubject: Sub, cMsg: cMyMsg});
Hope this helps
Malcolm

Similar Messages

  • Hello, iam using the latest version of firefox, whenever i login into my yahoo mail account i get a stop script error, the details of the error script is mentioned below , please suggest how to stop this : STOP ERROR

    Hello, iam using the latest version of firefox, whenever i login into my yahoo mail account i get a stop script error, the details of the error script is mentioned below , please suggest how to stop this
    the website is www.mail.yahoo.com. i was getting the same STOP script error every now and then in firefox 6 as well

    I have had a similar problem with my system. I just recently (within a week of this post) built a brand new desktop. I installed Windows 7 64-bit Home and had a clean install, no problems. Using IE downloaded an anti-virus program, and then, because it was the latest version, downloaded and installed Firefox 4.0. As I began to search the internet for other programs to install after about maybe 10-15 minutes my computer crashes. Blank screen (yet monitor was still receiving a signal from computer) and completely frozen (couldn't even change the caps and num lock on keyboard). I thought I perhaps forgot to reboot after an update so I did a manual reboot and it started up fine.
    When ever I got on the internet (still using firefox) it would crash after anywhere between 5-15 minutes. Since I've had good experience with FF in the past I thought it must be either the drivers or a hardware problem. So in-between crashes I updated all the drivers. Still had the same problem. Took the computer to a friend who knows more about computers than I do, made sure all the drivers were updated, same problem. We thought that it might be a hardware problem (bad video card, chipset, overheating issues, etc.), but after my friend played around with my computer for a day he found that when he didn't start FF at all it worked fine, even after watching a movie, or going through a playlist on Youtube.
    At the time of this posting I'm going to try to uninstall FF 4.0 and download and install FF 3.6.16 which is currently on my laptop and works like a dream. Hopefully that will do the trick, because I love using FF and would hate to have to switch to another browser. Hopefully Mozilla will work out the kinks with FF 4 so I can continue to use it.
    I apologize for the lengthy post. Any feedback would be appreciated, but is not necessary. I will try and post back after I try FF 3.16.6.

  • TS4002 Hello, icloud receive messages from gilly hicks, but does not receive messages from another personal account... this is happening me since one week and i dont know how to solve this.... error in the mail delivery system says not valid IPv4 SMTP err

    Hello, icloud receive messages from gilly hicks, but does not receive messages from another personal account... this is happening me since one week and i dont know how to solve this.... error in the mail delivery system says not valid IPv4
    SMTP error from remote mail server after RCPT TO:<[email protected]>:
       host mx6.me.com.akadns.net [17.158.8.114]: 550 5.7.0 Blocked - see https://support.proofpoint.com/dnsbl-lookup.cgi?ip=184.173.9.56:
       [email protected]
    i do alse receive from gmail....
    please help... what is happening!!!!

    Just to recap, this is a collection of ports I have collected over time for people who needed this information when setting up the HP ePrint app so that they could view their email from within the app.  I am certain other applications also need this information.  Although lengthy, I could not find a more comprehensive place to retrieve this information.  Feel free to post additional information, faulty information, or other related topics below as this is simply a collection of data and it would be practically impossible to test all of them. Thank you!
    Don't forgot to say thanks by giving "Kudos" if I helped solve your problem.
    When a solution is found please mark the post that solves your issue.
    Every problem has a solution!

  • In iCal - I keep getting the error message " This calendar was created by Mail" and it will not accept any input; why..??

    In iCal - I keep getting the error message “ This calendar was created by Mail” and it will not accept any input; why..??

    use Disk Utility and Verify Permisions then fix and Verify Disk and fix, this should fix it.

  • How do I fix this error, Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Modal session requires modal window'?

         I have been trying to start up my Batman: Arkham City game recently and it says that it cannot open and gives me this error;
                   "Terminating app due to uncaught exception 'NSInternalInconsistancyException', reason: 'Model session requires model window'"
         I have played the game for about 13 hours before this error started to pop up and I was wondering if anyone knew of a way to fix it.  Any information would be greatly appreaciated.

    Yesterday I had the same problem.
    I installed the game and played for five hours with no problem but in the last execution my iMac show me that error. I tried to uninstall and install the game again but always show me the error. I did the same with the Steam client with no solution.
    Finally I fixed the error deleting a folder.
    Go to Macintosh HD/Users/[username]/Library/Caches/com.feralinteractive.bmac
    and delete the folder named "com.plausiblelabs.crashreporter.data"
    Try to launch the game again.
    Good luck.

  • HT5642 Unable to download app this time error while downloading app please help!!!

    when i download some app from apps store i get the following error
    "Unable to download app this time error while downloading app" please help!!!
    i ve tried these Things but
    didnt workout yet
    1) i tried hard reset
    2)i tried logout/login Itune & appstore
    3)Connected to pc and rest setting Network and Full Rest
    all of no use... i dont want to update my softwre from IOS 6.0
    Plx help!1

    Hey Prahaladvatsan,
    Thanks for the question. If I understand correctly, there is a blank app icon on the home screen. It looks like you have already done some troubleshooting. I would recommend that you read these articles, they may be helpful in troubleshooting your issue.
    Restart or reset your iPhone, iPad, or iPod touch - Apple Support
    Back up and restore your iPhone, iPad, or iPod touch using iCloud or iTunes - Apple Support
    Thanks for using Apple Support Communities.
    Have a good one,
    Mario

  • TS1702 "App could not be purchased at this time" error

    Since upgrading to iOS7 every other app I try to install (free or paid) on my iPad 3 I get the "App could not be purchased at this time" box. After that the app store shows a the circling progress indicator rotating indefinitely below the app, and I can't click to try to install again.
    The only way to get around to try installing the app again is to shut down and restart the iPad.
    This has been happening since the release of iOS7 more than a month ago.
    It's unlikely to be a network problem since it happened on various locations. The fact that I can't try to install again appears to be a bug to me.
    Any ideas?
    Thanks,
    Flavio.

    Same issue here.
    I have emoji installed too, but i found out that the most simple/fastest way of getting arround this issue is:
    - open app-store
    - buy app
    - type in password
    - get error (spinning)
    - double tap - home button
    - close/quit app-store-app (swipe up)
    - open app-store again
    - buy again (says already bought)
    - app installs
    pretty annoying indeed. Restart is not nessasary, as its the same as force-quitting the app-store-app.

  • Web Browser "An error occured in the script on this page'

    Hi,
    I try to use a Web applic through std SBO Web Browser window. However I get this message:  "An error occured in the script on this page'.
    Why do I get this message? (I don't get it through other explorers)
    Is there a way to change browser parameters? Does SBO uses IE?
    BR,
    Vangelis

    The default is IE. Not everything that works on IE works through web application. Many open source web standards do not play well with IE. Try IE 8 or higher.

  • Our company have just upgraded to iOS 6 and the majority of the users are now receiving the following error 'Cannot Get Mail – Server error. Contact your server administrator' when accessing ms exchange this never happened on iOS 5 can anyone help

    Our company have just upgraded to iOS 6 and the majority of the users are now receiving the following error 'Cannot Get Mail – Server error. Contact your server administrator' when accessing ms exchange this never happened on iOS 5 can anyone help

    Have you tried deleting the account and re-adding it on the phone?
    What version of Exchange server are you running?

  • I completely lost access to mail after installing iOS 6.0.1. The app 'mail' won't even open now. How do I fix this?

    i completely lost access to mail after installing iOS 6.0.1. The app 'mail' won't even open now. How do I fix this?

    You mean the Apple Mail app? Updated through software Update in the Apple Menu?.
    Or maybe you downloaded Mail from another source?
    Do you still have Snow Leopard or didn't you update your profile?

  • Upgraded to 0SX Snow Leopard and now mail is saying can't use this version of app mail. i have mail 3.6. HELP

    I UP DATED MY MAC TO SNOW LEOPARD AND NOW MY COMPUTER IS TELLING ME I CAN'T US THE APP MAIL WITH THIS VERSION. I HAVE MAIL 3.6.  PLEASE HELP

  • Over the past week the Mac mail app on my iPad 2 has become locked in vertical orientation and only in the orientation such that the bottom is orientated toward the menu button. Any advice? This is the only app that seems to have been affected.

    For the past week or two, my Mac Mail app for my iPad 2 has been stuck in vertical orientation. This is the only app that is similarly affected. Moreover, it will only orient itself such that the bottom is toward the menu button on the iPad.  Please advise if you have a solution.

    Try closing the Mail app via the taskbar and see if it rotates when you re-open the app : from the home screen (i.e. not with the Mail app 'open' on-screen) double-click the home button to bring up the taskbar, then press and hold any of the apps on the taskbar for a couple of seconds or so until they start shaking, then press the '-' in the top left of the Mail app to close it, and touch any part of the screen above the taskbar so as to stop the shaking and close the taskbar.
    If that doesn't work also do a reset : press and hold both the sleep and home buttons for about 10 to 15 seconds (ignore the red slider), after which the Apple logo should appear - you won't lose any content, it's the iPad equivalent of a reboot.

  • Just noticed that when I close my mail app by double clicking the home button and swiping up it dies something weird. After doing this when I open my mail, instead of showing all my mailboxes it automatically opens one of them instead. Anyone know why?

    Just noticed that when I close my mail app by double clicking the home button and swiping up it dies something weird. After doing this when I open my mail, instead of showing all my mailboxes it automatically opens one of them instead. Anyone know why?

    Just to recap, this is a collection of ports I have collected over time for people who needed this information when setting up the HP ePrint app so that they could view their email from within the app.  I am certain other applications also need this information.  Although lengthy, I could not find a more comprehensive place to retrieve this information.  Feel free to post additional information, faulty information, or other related topics below as this is simply a collection of data and it would be practically impossible to test all of them. Thank you!
    Don't forgot to say thanks by giving "Kudos" if I helped solve your problem.
    When a solution is found please mark the post that solves your issue.
    Every problem has a solution!

  • When I try to sync photos, I followed all the steps, picked one folder.  When I hit "apply" I get this error message: Are you sure you want to remove 30 apps from iPad.  This will delete these apps and their data from the iPad. What have I done wrong

    When I try to sync photos or music, I followed all the steps, picked onle folder, not the whole library.  When I hit "apply" I got this message:
    Are you sure you want to remove 30 apps from iPad.  This will delete these apps and their data from the iPad" What can I change to just download the photos and not interfere with the apps?
    (By the way, the memory is not even one quarter full)
    Thanks for your help - Pat

    I have the same problem.  I updated my mac to 10.5, which then had me update apps like itunes, etc. then it wanted me to sync my purchased music to my ipad before i updated the ipad...which worked ok. then when i was syncing the photos i got the same message when i hit "apply" asking are you sure you want to delete the 12 apps from the ipad -  clicked "no" and brought me back to the original screen. Got the same message when trying to move them from the hard drive to the ipad.  WHat is going on and how do I correct this? Thanks

  • Simple fix for Included Mail Script

    This may have been mentioned elsewhere, but for those that have tried to use the "Display All Accounts And Preferences" AppleScript that Apple includes with Mail 2.x & discovered it doesn't work, the fix is simple:
    Open the script in Script Editor & use its search & replace for the line that reads:
    set theRulesPlist to (homeDir & "Library:Mail:MessageSorting.plist") as alias
    Replacing it with:
    set theRulesPlist to (homeDir & "Library:Mail:MessageRules.plist") as alias
    Save the script & it will now work without error.
    This script generates a new email message with tons of info about your accounts, preferences, & even the permissions of the folders Mail uses. This email item can be very useful for copying details about your account into Discussions posts. It doesn't actually address or sent the email, & you should be careful about sending it to anyone since it could reveal details about your accounts you don't want others to see.
    The same goes for any post here, of course.

    looking at Apple's example scripts is often enlightening.
    Actually, this is the only use I make of AppleScript.
    BTW, you can open rather than execute any script available
    in the app's Script Menu by holding down the option key when
    you select it.
    Again, thanks for the tip. I wasn't aware of that either.

Maybe you are looking for