Using the text and not the value of a filed

Hi there,
I'm programming a pdf form using life cycle, I'm using the following script in a "SEND TO" button in order to email an XML file with the data extracted from the form:
var emailAddress = F.P1.Line.rawValue;
var veicle = F.P1.Vehicle.rawValue;
var shipper = F.P1.Shipper.rawValue;
var date = F.P1.Date.rawValue;
event.target.submitForm({cURL:"mailto:"+emailAddress+"?subject=Booking request from "+shipper+" date:"+date+" &body=Dear Sirs,Please find attached the completed PDF booking form for the following "+veicle+".",cSubmitAs:"XML",cCharset:"utf-8"});
The problem is that I would like to use in a variable the text and not the value of the F.P1.Line.raw field.
Thanks in advance

Hi,
This is not the appropriate forum to post this type of question. Please post all designer related queries in LiveCYcle Designer Forum to receive better response.
From you query I understand you have a dropdown box with name as "Line". And you want to the "text" part of the selected item and not the "value" part. If it is so then do the following -
1. Write the below code in onCHange event of your dropdown box.
var ddValue = this.boundItem(xfa.event.newText);
var nodeList = this.resolveNode("#items").nodes;
var ddText = null;
for (var i = 0; i < nodeList.length; i++)
if (this.boundItem(nodeList.item(i).value) == ddValue)
ddText = nodeList.item(i).value;
break;
global.selectedtxt = ddText;
In the above code I am basically getting the "text" part of the item selected and then I am storing it in a global variable.
2.
Write the below code on click event of your button -
var emailAddress = global.selectedtxt;
Hope this helps.
Thanks,
Shivajiv.

Similar Messages

  • I started to learn HTML, and I'm using text edit and everything is going fine, when I save the file with a .html extension and open it with safari I only view the code and not the webpage that was supposed to be created.

    I started to learn HTML, and I'm using text edit and everything is going fine, when I save the file with a .html extension and open it with safari I only view the code and not the webpage that was supposed to be created.

    That is because you don't have a web server configured and running to serve the html page. In order to see the page in a browser you need to access it using a url similar to http://localhost/~yourUserName if you are serving the page from your user account.
    Prior to Mountain Lion you could go into web sharing and turn on the web server. With Mountain Lion there is no option, other than using terminal, to turn on the web server. The web sharing menu item has been removed in Mountain Lion. Apache is still on your computer but it will take a little searching these forums or the Internet to find how to turn it on.
    If you want a graphic user interface to turn on/off the Apache server you could download and install a server application like xampp, http://www.apachefriends.org/en/xampp.html. I use this and it works well.

  • How can I transfer photos from an IPhone 5 to an IPad 2 using a cable.  I have tried using the lightning to firewire adapter with my current lead but this only seems to allow a download from the Ipad to the Iphone and not the other way around.

    How can I transfer photos from an IPhone 5 to an IPad 2 using a cable.  I have tried using the lightning to firewire adapter with my current lead but this only seems to allow a download from the IPad to the IPhone and not the other way around.

    The devices are not designed for transfer of that kind.  Use Photo Stream as suggested by another poster, or transfer photos to your computer (a good idea anyway since they will be lost if your device needs to be reset), then use iTunes to sync them to the other devices.

  • Hi, I am new to using iTunes.  Just downloaded 50 shades of Grey only to find it is the BOOKS and not the music.  How do I get a refund for this?

    Hi, I am new to using iTunes.  Just downloaded 50 shades of Grey only to find it is the BOOK and not the music.  Incidentally, I find that entering this community is somewhat akin to trying to get into Fort Knox!!  Too much officiousness.

    There are no refunds.
    You can try contacting itunes support and ask for an exception:
    http://www.apple.com/support/contact/

  • VeI have edit set in iphoto to use in photoshop. When i save in photoshop the photo returns as the original and not the edited rsion.

    I have edit set in iphoto to use in photoshop element 9.
    When i save the edited photo in photoshop it returns to iphoto as the original and not the edited version.

    Using Photoshop or Photoshop Elements as Your Editor of Choice in iPhoto.
    1 - select Photoshop as your editor of choice in iPhoto's General Preference Section's under the "Edit photo:" menu.
    Click to view full size
    2 - double click on the thumbnail in iPhoto to open it in Photoshop.  When you're finished editing click on the Save button. If you immediately get the JPEG Options window make your selection (Baseline standard seems to be the most compatible jpeg format) and click on the OK button. Your done. 
    3 - however, if you get the navigation window
    Click to view full size
    that indicates that  PS wants to save it as a PS formatted file.  You'll need to either select JPEG from the menu and save (top image) or click on the desktop in the Navigation window (bottom image) and save it to the desktop for importing as a new photo.
    This method will let iPhoto know that the photo has been editied and will update the thumbnail file to reflect the edit..
    NOTE: With Photoshop Elements 9 the Saving File preferences should be configured as shown:
    Click to view full size
    I also suggest the Maximize PSD File Compatabilty be set to Always.  In PSE’s General preference pane set the Color Picker to Apple as shown:
    Click to view full size
    Note:  to switch between iPhoto and PS or PSE as the editor of choice Control (right)-click on the thumbnail and select either Edit in iPhoto or Edit in External Editor from the contextual menu.
    OT

  • How can I print just a part of the page and not the full page with Adobe Reader v 10.1.2?

    how can I print just a part of the page and not the full page with Adobe Reader v 10.1.2? I need to print a engineering print with lot of information but information is too small in letter size and I don't have a plotter.

    Two ways to print a portion of a page: zooming or using the Snapshot Tool.
    ZOOMING:
    Zoom into the area you want to print.
    Click the Print icon.
    Under "Pages to Print", make sure "Current view" is selected under "More options" (you may need to click "More options" to open it).
    If you aren't satisfied with the preview, try clicking "Fit" under the Size button.
    SNAPSHOT
    Choose Edit > Take A Snapshot.
    Drag a rectangle around the area you want to print. 
    Click the Print icon.
    Under "Pages to Print", make sure that "Selected Graphic" is selected under "More options".
    To enlarge the snapshot to fit the sheet of paper, choose "Fit" under the Size button.
    Hope this helps!

  • How do i delete files in pages, i have some old invoices in pages that i want to delete, i can delete the text but not the whole file, please help. Dennis

    As it say's above i need to delete some of my oldinvoices/estimates from my files in pages, i can get rid of the text but not the whole file, thanks Dennis

    You locate the file in the Finder(it's in the Documents item of the sidebar by default), drag it to the Trash, and empty the Trash.
    (59926)

  • Ipad is connected to the computer however doesn't show up in the menu, I'm trying to restore it but am concerned that it will restore the iphone and not the ipad. any suggestions?

    ipad is connected to the computer however doesn't show up in the menu, I'm trying to restore it but am concerned that it will restore the iphone and not the ipad. any suggestions?

    Hi vanover7,
    It sounds as if when you connect your iPad to your computer it does not show up in iTunes, is that correct? 
    Please use the steps in this article to troubleshoot the issue -
    iPhone, iPad, or iPod touch not recognized in iTunes for Windows - Apple Support
    Thanks for using Apple Support Communities.
    Best,
    Brett L 

  • HT202181 10.9 and 10.10 mounts the folder and not the sharepoint when clicking on a URL link

    I have tested this on several computers and it appears that 10.9 and 10.10 have reverted to mounting the folder and not the sharepoint, similar to 10.6-10.6.6.

    -> Provide your Crash IDs by using the suggestions mentioned in the following article:
    * [[Firefox crashes#w_get-help-fixing-this-crash|Get help fixing this Crash]]

  • I have an iPhone 5 and with any pair of earphones that I plug in the sounds comes out of the speakers and not the earphones

    I have an iPhone 5 and with any pair of earphones that I plug in the sounds comes out of the speakers and not the earphones
    The problem occurred a few days after I had updated to iOS 7.02

    Hey Tahls23!
    I have an article that can help you troubleshoot that issue:
    iPhone: Hardware troubleshooting
    http://support.apple.com/kb/TS2802
    No sound through stereo headset
    Inspect the headset jack for debris and clean if necessary.
    Connect the headset and make sure the connector is pushed in all the way.
    Check the volume setting. Adjust the volume by pressing the volume up and down button on the left side of the iPhone.
    If you are trying to listen to music and cannot hear any audio, make sure that the music on iPhone is not paused. Try squeezing the headset microphone to resume playback. Additionally, from the Home screen you can choose iPod > Now Playing, then tap Play.
    Make sure the latest version of iTunes is installed on the computer that you are syncing the iPhone with (songs purchased from the iTunes Store using earlier versions of iTunes won't play).
    Try another Apple headset (some third-party headsets require an adapter to be used with original iPhone).
    Try a different song or video.
    Check to see if the iPhone alert sounds or other iPhone sound effects exhibit the same audio issues.
    Disconnect the headset from the iPhone and see if sound comes from the built-in speaker.
    Take care, and thanks for visiting the Apple Support Communities.
    -Braden

  • When i want to print an email, it will only print the address and not the attachment why

    When I receive an email that I want to print, the printer will only print the address and not the attachment with the message or a picture.   Why?
    HP Photosmart C6180 All-in-One

    hi there,
    could you provide the community with a little more information to help narrow troubleshooting? What operating system are we using and where are we printing from?
    You can say thanks by clicking the Kudos Star in my post. If my post resolves your problem, please mark it as Accepted Solution so others can benefit too.

  • Why can one mac access the internet and not the other?

    Hi I have just installed a 2nd generation Airport Express base station. I have setup a network and I can connect to it to access the web. Here's the rub, only my Macbook Pro can connect. My Macbook Air cannot connect? A weird error message says (translated from Swedish): Airport has the selfapplied/selfselected IP adress 169.254.67.130 and will not be able to connect to the internet.
    Why can one mac access the internet and not the other? Is there something simple that I can do to get more macs to be able to use my Airport Express to access the internet?
    Tech details:
    Airport Express 2nd generation (just purchased) model 1392
    Macbook Pro running 10.8.2
    MacBook Air running 10.6.8

    It seems the Airbook assigns a dummy IP address so somehow it doesn't reach and receive an IP from the Express. I deleted the previous Express setting restarted the Air connected again, restarted the modem, restarted the Express nothing....
    I spoke to the internet provider and the cable modem does not require any username or pw. from the modem to the cable it's one public ip, pure internet is flowing from the modem to the Express but the express doesn't seem to assign any IP address apart from the one assigned to the Macbook Pro.
    Do you need a screendump of the settings on the functioning Mac or the faulty one? What settings are you interested in i.e. which tab should it shot?

  • TS3367 When I FaceTime the picture is always on the side and not the correct way up

    When I use FaceTime the picture is always on the side and not the correct way up.

    I have restored as a new device first and then from backup, neither of which solved the problem. I have used mms regularly since I got the phone about 18 months ago. I will check but as I have been able to receive them to my phones lockscreen I would assume that it is enabled. When I open a conversation with someone it shows the image as
    ? IMG 6992      Just with differing number but when I click on it nothing opens.
    I can send mms fine to other people. I have also tried turning off Imessage and that doesn't solve the issue either.
    Thank you for your help

  • My iPad was mirroring the optimmum tv app but now it's just mirroring the audio and not the video.....What do I do to correct this?!!!

    My iPad was mirroring the optimmum tv app but now it's just mirroring the audio and not the video.....What do I do to correct this?!!!

    Welcome to the Apple Community.
    You'll need to buy another, there is no support or warranty for an Apple TV with unauthorised modifications.

  • Why is the stub generated from the implementation and not the interface?

    Why is the stub generated from the implementation and not the interface?

    Because if a remote server object implements multiple remote interfaces, its stub must implement all the same remote interfaces. The only way to know which interfaces to implement is to examine the server object class.

Maybe you are looking for

  • I don't have a song library, as my old computer went blank, how do I get this on my new computer

    I'm looking to have a song library on my new computer, because the old computer went blank, I have a 2nd generation nano IPOD, that works, I tryed going into apple but they want a date I purchased this out dated model, and I don't remember what can I

  • Dying/Uneven LCD on 15" MacBook Pro

    So I bought a $2000 machine less than 90 days ago (a machine that Apple stopped making today) and now it has to go in for the 2nd time! Check out my posts to read that tragedy. I just picked my machine up from my local Apple Store and was told that I

  • Iphoto where are my pictures

    where are my pctures? i imported from iphone. i see no folder called iphoto library in (can't)finder, and i want to copy these photos onto a thumb drive.

  • Order creation using workflow

    Hello, I'm trying to create sales order automatically using event triggered by user status changes. I need no user participation in this process. Can i use workflow for this purpose? As i see from documentation' examples user activity is needed...Do

  • Lead managment

    What is lead managment in CRM?