Radio button to determine what text is put into the body of an email

Hi all,
I need some help with a radio button and java scripting. This is the code I'm using on a button with a mouse up event using Java script run at the client
var oSubmit = this.resolveNode("$..#submit");
var cToAddr = "[email protected]";
var cCCAddr = "[email protected]";
var cSubLine = "Security Access Authorization";
var cBodya = "Dear Help Desk," + "\n" + "\n" +
"This email serves as my electronic approval for " + "\n" + "\n"
var cBodyb = "============ SECURITY ACCESS REQUEST DETAILS ================" + "\n" + "\n"
var cBodyc = (EffDate.length = "")
  if(EffDate.rawValue)
cBodyc = "Effective Date - " + EffDate.formattedValue + "\n" + "\n"
var cBodyd = (RadBut.length == "2")
  if(RadBut.rawValue)
cBodyd = "Status - Create New User Account" + "\n" + "\n"
var cBodye = (RadBut.length == "3")
  if(RadBut.rawValue)
cBodye = "Status - Add/Remove Access" + "\n" + "\n"
var cBodyf = (RadBut.length == "5")
  if(RadBut.rawValue)
cBodyf = "Status - Terminate" + "\n" + "\n"
var cBodyg = (RadBut.length == "1")
  if(RadBut.rawValue)
cBodyg = "Status - Department Transfer from " + "\n" + "\n" 
var cBodyh = (RadBut.length == "4")
  if(RadBut.rawValue)
cBodyh = "Request to have name changed to - " + "\n" + "\n";
oSubmit.target = "mailto:" + cToAddr + "?cc=" + cCCAddr
+ "&subject=" + cSubLine
+ "&body=" + cBodya + cBodyb + cBodyc + cBodyd + cBodye  + cBodyf  + cBodyg + cBodyh ;
this is the test layout I'm using
No matter what I try, it always put all of the choices in the body of the email, not just the one I checked. any help would be greatly appreciated...Thanks Erick

First off welcome to the group! Livecycle can be an interesting program.
For me I am not very technically proficient in coding so I tend to gravitate to, how you say, less than elegant solutions. What I do is create an Email Submit button for each Radio button. Then I create a dummy Email Submit button (this part will be key later). From the Object Library view on each Email Submit button I set the Email Address and Email Subject that I want. Then I hide all of the Email Submit buttons with the exception of the dummy Email Submit button. From the Action Builder I then create an action on the dummy Email Submit that when the button is clicked to open a dialog box to say "Please Select an Option". I then create an action within the Action Builder on each Radio button to show the corresponding Email Submit button that has the subject line I need while also making sure to hide the dummy Email Submit button (and any other buttons if the user clicks several radio buttons). That worked for me in the past. Then I added a DocuReady event on the dummy Email Submit button to make sure it was visible and the other buttons were hidden once the form was open. Sort of a reset if you will. The downside is if the user changes nothing they still get a prompt to save the changes. I am sure that some of our more advanced coders can offer a fix to your code lines, but that is sort of the non-coder way to go about this.
Edit: Oh I forgot to say that if you want the buttons to appear the same to the user, just overlay them together. To the user there is no change.

Similar Messages

  • Can't put image into the body of Yahoo Email.

    Although easily done using I.E or Outlook, any attempt to paste an image into the body of a Yahoo Mail results in nothing happening when using Firefox. I do NOT want to use I.E.
    This is a major problem. Attachments are no solution. In many industries, including mine, we like to send flyers as images or IN-LINE documents via email.
    Will Firefox / Mozilla address this issue?
    Is there a solution already?

    I have 2 FF windows open. One to view my picture and one with Yahoo mail. If I click and drag the picture into my Yahoo mail body, it works. Can't do copy/paste like in IE.

  • Send text file content as the body of an email using Send-MailMessage

    I am taking the last 8 lines of a bunch of robocopy logs and bunching them together.  
    Get-ChildItem -Filter *.log | ForEach {
    $a += Get-Content $_.Name | Select -Last 8
    $a += Write-output ' '`r
    $a += Write-Output '------------------------------------------------------------------------------'`r
    I then wanted to use this as the body of an email (send-mailmessage).  It all works but the formatting is lost in the email. I've tried using Out-String and ConvertTo-HTML with little luck.
    If I look at $a in the above it looks fine in the PowerShell console it's just lost when it reaches my inbox.
    I am using v2 of PowerShell and sadly can't upgrade it.

    The issue isn't that part. It's the content of the log files that loses its formatting.
    $a += Get-Content $_.Name | Select -Last 8

  • When i copy a word document into the body of an email, it arrives in a distorted format.  what can i do to insure it will arrive in the body of the email as it appears in my word document?

    how can i ensure that when i copy a word document into the body of an email, it will arrive in the same format as it appears in the word document.  mine arrive with distorted spacing.  thank you!!

    Sounds like the Word file may have right justification. You can turn that off within Word.
    You can also save the file as a pdf using these instructions:
    http://support.apple.com/kb/PH10738
    and send the pdf instead.

  • Edirectory ldap, what do I put in the DN String field?

    Experts,
    I am trying to configure LDAP authentication. I've done this many, many times against Active Directory. In AD it is usually DOMAIN_NAME\%LDAP_USER%.
    This has been driving me nuts today. We are running eDirectory. I have my server's IP address and port.
    What do I put in the DN String field? I've tried many combinations of TREENAME\%LDAP_USER%, nothing seems to work.
    If it is more complicated than that, where do I look in NDS to figure out what I need to put in the DN String field?
    Thanks!
    Dan

    Dan,
    I'm actually surprised you had success with that on AD as I never did. I recommend you get a little lower level and use DBMS_LDAP. Here's a little sample code to get you started:
       FUNCTION ldap_authenticate (
          p_username IN VARCHAR2
        , p_password IN VARCHAR2
          RETURN BOOLEAN
       AS 
          l_dn      VARCHAR2(256) := p_username || '@domain.com';
          l_bind    PLS_INTEGER;
          l_session DBMS_LDAP.SESSION;
       BEGIN
          IF p_username IS NULL
          THEN
             RAISE_APPLICATION_ERROR(-20001,'A username must be supplied');
          END IF;
          IF p_password IS NULL
          THEN
             RAISE_APPLICATION_ERROR(-20002,'A password must be supplied');
          END IF;
          dbms_ldap.use_exception := TRUE;
          l_session := dbms_ldap.init(
             hostname  =>  'server.domain.com'
           , portnum   =>  389
          l_bind := dbms_ldap.simple_bind_s(
             ld      =>  l_session
           , dn      =>  l_dn
           , passwd  =>  p_password
          l_bind := dbms_ldap.unbind_s(l_session);
          RETURN TRUE;
    EXCEPTION
       WHEN OTHERS
       THEN
          RETURN FALSE;
    END;Regards,
    Dan
    http://danielmcghan.us
    http://sourceforge.net/projects/tapigen

  • In accounts  what should I put as the Server Name?  smtp. ?  thanks, Jon

    In accounts  what should I put as the Server Name?  smtp.  ?  thanks,  Jon

    If you are talking about iCloud email you shouldn't need to put anything in. Sign in in System Preferences>iCloud and check 'Mail' in the checklist there and it should set it up automatically.
    If you really want to know the server details they are listed here:
    http://support.apple.com/kb/HT4864

  • I want to host my Muse website on Dreamhost.  When I publish it, what do I put in the "Host Directory" field?

    I want to host my Muse website on Dreamhost.  When I publish it, what do I put in the "Host Directory" field?

    Hi,
    I'm no expert in this but I think you:
    1) first have to buy your domain.
    2) Go to the > manage domain section > under the Web Hosting section Add hosting.
    3) Once this is all done you should be able to access your site with an FTP client.
    4) Once you are in your directory you should see the folder with your domain name.
    5) Drop your published MUSE site into the folder. You should be able to now type your
    URL into a browser and see your site posted online.
    If this isn't clear... I would suggest going onto dreamhost and doing a chat session with them
    they are really patient and helpful!
    Hope this helps a little.
    Steve

  • In a PM, what do I put in the send to field?

    In a PM, what do I put in the send to field?

    Hi
    Send to field is where you should type a username you want to send a message to. For example, if you wanted to PM me, you'd type ATTDmitriyCM in a Send To field, then your subject and message, and send.
    Please let me know if you have any other questions.
    Thanks,
    Dmitriy

  • What do I put in the "Description" when setting up an e-mail on my iPad

    What do I put in the "Descussion" when setting up an e-mail on my iPad?

    Whatever you want. That's up to you. Its for you to identify the account, nothing more.

  • What do I put into "upload to FTP host" window to publish my site?

    I have an account with godaddy and I have a domain name for my site. I'm just not sure what to put into the fields for the upload to FTP host window.

    Please check this video which includes the steps :
    https://www.youtube.com/watch?v=OwPcLnkDCXg
    Thanks,
    Sanjit

  • What shall I put in the "device reference in" in the Read.vi?? for my USB-8451, where I found the name to be USB0::0x3923::0x7166::01349C20::RAW??

    as title
    what shall I put in the "device reference in" in the Read.vi?? for my USB-8451, where I found the name to be USB0::0x3923::0x7166::01349C20::RAW??
    i put the whole name in and it keep telling me
    Error -301706 occurred at NI-845x I2C Read.vi
    NI-845x:  The device reference is invalid. Verify that the supplied device reference contains a valid device name.
    Thanks!

    Chihway,
    I apologize for misreading your post the first time around.  Dennis is only half correct in this case.  The USB-8451 is supposed to show up as a USB-RAW device in MAX, but you do not have to run the driver wizard to create an interface to it.  In Measurement and Automation Explorer, select the USB-RAW device under USB Devices and create a VISA alias (I always use 8451) by typing it in the "VISA Alias on My System" box.  You should then be able to use that alias for all communication.  I hope this post helps a little more than the last one!
    Sincerely,
    Chris G in AE

  • What should you put in the registration form

    hi i was wondering what i should put in the company/organization blank of the registration form for the iphone adc if i am doing this personally and i am not part of a company or organization

    You can just use your name again, if you like...change it a bit so you can tell which is being used in the store, as in this example:
    Name: Kevin Kijanka
    Company: K Kijanka
    In any case, it isn't critical for you since you're just an individual.

  • No matter what i do, my iphone will not recognize any sim card that is put into the phone, and i have tried 3 different networks

    No matter what i do, my iphone will not recognize any sim card that is put into the phone, and i have tried 3 different networks

    Most likely the phone is locked to a carrier that you haven't tried yet.

  • What does ServletAuthentication put in the session?

    Quick question,
    The API documentationo for the ServletAuthentication class states: "It performs
    the authentication call through the Realm and sets the user information into the
    session."
    What exactly does the ServletAuthentication class put into the session when calling
    the weak() method? Does it put something into the session even if FAILED_AUTHENTICATION
    is returned?
    Thanks for your help,
    Scott

    Hi, Dana. There is no way to be sure what SSD Apple might install in an MBP that you order today. It might or might not be the same unit that was in MBPs built a month or two ago, or yesterday. Just as Apple buys its hard drives from several different manufacturers, it may buy SSDs from several manufacturers, or different models from the same manufacturer.
    But if it is the Toshiba SSD, then I'm better off getting an SSD of my own and putting it in myself.
    Only if it works. There have been quite a few reports here of various SSDs installed by users not working properly, and it isn't completely clear whether there's a single reason why they don't, or several different reasons, or whether there are brands/models that always do or always don't work. Until the dust settles and there's a bit more clarity, if you really want a working SSD in your machine, it may be wisest to have Apple install one, regardless of what make and model it turns out to be.
    Message was edited by: eww

  • Okay so my IPod touch 4 won't play music through any headphone I put into the port. I've tried it with 4-5 different headphones but it still won't work.  How can I fix this?

    Okay so my IPod touch 4 won't play music through any headphone I put into the port. I've tried it with 4-5 different headphones but it still won't work.  How can I fix this? This isn't the first time something like this has happened but it has never stayed this way for such a long time. If I have to send it in for repairs I will but I'm not sure if its under warranty

    To check for warranty coverage:
    https://selfsolve.apple.com/agreementWarrantyDynamic.do
    - Try cleaning out/blowing out the headphone jack. Try inserting/removing the plug a dozen times or so. There is a little switch in the headphone jack that disconnects the speaker when the headphone jack is inserted.
    Try the following to rule out a software problem
    - Reset the iOS device. Nothing will be lost
    Reset iPod touch: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Reset all settings
    Go to Settings > General > Reset and tap Reset All Settings.
    All your preferences and settings are reset. Information (such as contacts and calendars) and media (such as songs and videos) aren’t affected.
    - Restore from backup
    - Restore to factory settings/new iOS device.
    - Make an appointment at the Genius Bar of an Apple store. Seems you have a bad headphone jack.
    Apple Retail Store - Genius Bar
    If not under warranty Apple will exchange your iPod for a refurbished one for $199 for 64 GB 4G and $99 for theother 4Gs. They do not fix yours.
    Apple - iPod Repair price                  
    A third-party place like the following will replace the jack for less. Google for more.
    iPhone Repair, Service & Parts: iPod Touch, iPad, MacBook Pro Screens
    Replace the jack yourself
    iPod Touch Repair – iFixit

Maybe you are looking for

  • What is the shortcut key to highlight words in adobe reader in macbook pro

    what is the shortcut key to highlight words in adobe reader in macbook pro? Shift + U is not working how can i change shortcut key?

  • Error message when trying to create a user account in WGM

    In WGM, everytime I try to create a new account and save, this message appears: *Got unexpected error* +Error of type eDSAuthNoAuthServerFound (-14102)+ +on line 2112 of /SourceCache/WorkgroupManager/+ WorkgroupManager-319.2.2/Plugins/UserAccounts/ U

  • Mail doesn't send messages

    Alright. I upgraded to Leopard and now my mail is acting oddly. I can compose a new message, I can "send" it, and mail says it has sent and moves the message from the Outbox to the Sent box. So I was assuming all my emails were being sent. Then I fou

  • Short question about Zen Mi

    Is it possible to display my Mp3's in a folder structure with the Zen Micro so that i can chose songs or albums like in Windows Explorer?

  • Formula variable to compute number of Months

    Hi Guyz, I have created a formula variable( Custom exit)  to compute the number of months, and the field used is 0CALMONTH, below is the code, but am not getting the required value. The scenario is : 0CALMONTH: if the range entered is 022010 042010 Z