Pass contents of dreamweaver form field..

Hello from my script below:
<script type="text/javascript">
function OnSubmitForm() 
  if(document.myform.operation[0].checked == true) 
    document.myform.action ="https://webtrace.etdatacenter.com/webtrace.aspx?accesstype=autologin&cust=id_015&user=temp lateuser"; 
  else
  if(document.myform.operation[1].checked == true) 
    document.myform.action ="https://carrierconnect.etdatacenter.com/Default.aspx?accesstype=autologin&cust=id_015&user =username"; 
  return true; 
</script>
<form name="myform" target="_blank" method="post" action="" onsubmit="return OnSubmitForm();">  
<fieldset>
<legend><font color="#FFFFFF">LOGIN</font></legend> 
username: <input type="text" name="username"/><br /><br />
password: <input type="password" name="password"/><br /> 
<input type="radio" name="operation" value="1" checked="checked"/><font size="-1">Customer Tracking</font> 
<input type="radio" name="operation" value="2" /><font size="-1">Web Booking  </font>
<input type="submit" name="submit" value="submit" />
</fieldset>
</form>
The user fills in their username and password then selects either 'customer tracking' or 'web booking' radio button.....Based on the radio button selected they are directed either to
https://webtrace.etdatacenter.com/webtrace.aspx?accesstype=autologin&cust=id_015&user=user name if 'customer tracking' or
https://carrierconnect.etdatacenter.com/Default.aspx?accesstype=autologin&cust=id_015&user =username if 'web booking'
How do I pass the contents of the username where I have currently 'username' which is the form field, but I need to pass the contents.
thanks

  if(document.myform.operation[0].checked == true)
    document.myform.action ="https://webtrace.etdatacenter.com/webtrace.aspx?accesstype=autologin&c ust=id_015&user=templateuser";
  else
  if(document.myform.operation[1].checked == true)
    document.myform.action ="https://carrierconnect.etdatacenter.com/Default.aspx?accesstype=autolo gin&cust=id_015&user=" + document.myform.username.value;

Similar Messages

  • Pass in values for form fields

    Is it possible to pass in values for form
    fields like an ticket id or something?

    Sorry, we currently do not support that.
    Randy

  • Flexible content lengths in form fields - how?

    Hi everyone,
    I am new at this Designer tool and need help regarding flexible contents inside form fields.
    1. Inside my pattern-form there are fields for customer/product-contents which VARY their size.
    --> Example: If field #a gets a size of 20 lines instead of 5, field #b (below #a) MUST move/relocate downwards.
    (It is not acceptable to offer a maximum sized field only = I need flexible frames!)
    2. Ideal would be: If form #a becomes too big, the form should be able to push field #b to the following page.
    Can someone explain me the steps how to do produce a form which contains the requirements above? Many thanks in advance!
    Matt

    Hi Matt,
    this issue should be resolved by placing the fields in question inside a sub-form. Subforms can either be Positioned (where the fields cannot grow) or Flowed (where the fields can grow).
    To do this you can Ctrl+select all the fields in the hierarchy view and right-click --> Wrap in Subform.
    This will alter the hierarchy structure; you will see the fields under your new subform.
    Next, go to the Object's tab (once you have selected the subform) and change the property to 'Flowed' (the alternative is Positioned). Once you have changed it to Flowed, you have the option of flowing it either Top to bottom or Western Text (from left to right). This choice must be based on your requirement.
    I won't lie - the Flowed/Positioned subform option can be tricky, the 'Margins'settings can mess with the rest of your layout. If this subform thing throws off your layout too much, you can also place Positioned subforms within it - just remember those subforms will not grow. Testing will reveal what suits you best.
    It is very important to remember to tick 'Allow Page Breaks within Contents' - this allows the subform to flow over onto the next page if needed. Also, remember to look at your Field's properties (such as 'Allow Multiple Lines', etc).
    I hope this has helped. Perhaps look for a tutorial on this matter on the Adobe site - you'll probably need a reference to look back on if you get stuck.
    Zoe

  • Protect Form Fields from "Clear Form"

    I've created PDF Form with various fields, and created button to make readonly for all the Field data. This PDF Form will be used by 3 persons in different section. How to protect all filled text fields from "Clear Form" function in Form Tool.
    Once the Form fields are filled by 1 person, the other person can not use the "Clear Form" function to clear all filled fields. Please guide to to protect filled text,checklist fields from "Clear Form".

    If one flattens the form fields then they become context and are no longer form fields. It is possible to selectively flatten PDF content like annotations, form fields, page ranges, and by the "print/no print" property for Acrobat versions 6 or above.
    The flattenPages is not available to Reader.
    PDFScripting.com has a tool bar button that can perform selective flattening.

  • Save Forms Fields PDF with information un-editable

    We created a simple 5 form field PDF invoice for a client to edit and send out to customers. They want to be able to edit the fields, but then save the resulting PDF with the input information to be un-editable but the end customer they are sending the invoice to. Is this possible?

    Will the client be using Acrobat or just Reader? If just Reader, you can lock the fields after they are filled-in by making them read-only, which will require a script. You should also set the default value of each field to the current value of the field, which prevents clearing the form if the user resets the form. There's an older topic from several months ago that discusses this in more detail. If you can't find it, post again and I'll try.
    If they will be using Acrobat, a better approach is to flatten the form fields, which converts the field apperances to regular page contents, removing the form fields in the process. You can flatten fields with Acrobat using JavaScript, PDF Optimizer, or Preflight. Post again if you need help with this.

  • How do I restore the "Flatten annotations and form fields" Preflight profile?

    The "Flatten annotations and form fields" Preflight profile (sub: PDF fixups) was accidentally deleted from my computer. I don't know how to reinstall/recreate it. I use it all the time... please help.

    In which case, just recreate it yourself:
    Preflight > Pptions menu > New Preflight Profile
    Give it the name you want
    Custom Fixups section on the left, add two entries from the list
    "Flatten all annotations into page contents"
    "Flatten all form fields into page contents"
    Save it in the PDF Fixups category and lock it

  • Can I port content from one pdf form to another, from within the form fields?

    WE have been given a seasonal update to our pdf forms - with one new additional form field. Is there a way that I can port all the content from my ready filled form into this new one, without having to copy and paste each individual field?
    Thanks.

    What is it that you want to do
    - you are the form filler; you want to keep the contents of a filled in form (and put them back into a changed form)?
    - you are the person responsible for adding/changing form fields; you want to keep the design and location of the form fields while changing the underlying PDF?
    - both of these?

  • How to Pass XML Data to a PDF Form and Load it into form fields

    I have xml Form data in a string. I would like open a programatically launch a pdf document and pass the xml data as one of the parameters and this xml data needs to load all the form fields.
    Any Idea as to how this can be done?

    I have the same requirement as Daminu, but from the research I have been doing it seems your reply is only partially true. 
    If your PDF is an XFA PDF form, with Reader Extensions enabled, and you want to keep the Reader Extensions functionality for a user to use after your programmatic manipulation, then neither of these tools will work (FDFToolkit or iText).
    Upon the user opening the file once it has been programmatically modified, the user will see the following:
    From what I have read, this requirement can only be fullfilled by use of LiveCycle Reader Extensions Server?  Please confirm?

  • How to retrieve the procedure value and pass the value to a form field

    How to retrieve the procedure value and pass the value to a form field?

    Set property for the field and the value is the actual procedure/function.
    Cheers

  • I have made .indd file with some form fields in it, now haw to read these fields and manipulate its content through script in indesign

    I have made .indd file with some form fields in it, now haw to read these fields and manipulate its content through script in indesign

    It's probably best to ask in the InDesign Scripting forum:
    InDesign Scripting

  • Forms personalyzation, passing Form field values to SRS concurrent request.

    Hi,
    Iam calling an SRS from forms personlization. Can any body tell me how to pass the Form field values as parameters to the Reports. (Example when they call this Concurrent request from Transactions screen, The invoice number should be defaulted in the report parameter).
    Regards,,
    Anil.

    Hi,
    You can use FND_REQUEST.SUBMIT_REQUEST to submit a concurrent progrm with parameters given.
    For example, get the invoice number into v_invoice_no and call a function included code bellow.
    FND_REQUEST.SUBMIT_REQUEST(
    <app_short_name>,
    <concurrent_short_name>,
    to_char(SYSDATE,'DD-MON-YYYY HH24:MI'),
    FALSE,
    v_invoice_no,chr(0),'','','','','','','','',
    '','','','','','','','','','');-- 100 ARGUMENTS FROM THE BEGINNING
    Where chr(0) must be the last argument.

  • How to pass the FORM Fields value by Form Personalization

    Hi ALL,
    I want to pass form filds values in to procedure. I am calling this procedure through form personalization of that form..... But it's not accepting any form field's value there... when i am passing hardcoded vales procedure is executing fine...
    can any one suggest what to do???
    i tried with these syntax
    TEST_EMP_FP(:ADDR.ADDRESS_ID,'ABC')
    TEST_EMP_FP(${item.ADDR.ADDRESS_ID.value},'ABC')
    Regards
    Ravi

    Hi,
    Iam calling an SRS from forms personlization. Can any body tell me how to pass the Form field values as parameters to the Reports. (Example when they call this Concurrent request from Transact5ions screen, The invoice number should be defaulted in the report parameter).
    Regards,,
    Anil.

  • How can I pass a variable to a form to pre-fill form fields on load?

    Hi all,
    I am developing a Windows Form Applicaiton in C# to register new users and walk them through a signup process.The application does a lot of other things as well. This part of it collects their personal information and saves the data to the database. Part of the process requires the user to complete a pdf form (W-4 tax form). I would like to pre-populate as many form fields as possible for them when the pdf launches, and not have them enter anything to get their data to prefill the form fields.
    My issue is I can't figure out how to get the pdf to know who is loading the form so I can do the SQL select and populate the form fields. I need to do a select * from Table where UniqueID="xxxxx" but how can I get the form to know on load what "xxxxx" is so it grabs the users personal info from the database?
    I have searched high and low and found nothing on how to do this without doing some hoakey hack outside of the application or pdf doc.
    I am creating/editing the form in LiveCycle Designer 8 and am loading the form for use by the user in acrobat 9.
    Any help,ideas, or nudging in the right direction would be much appreciated!

    I found this solution:
    REPORT YRT_TEST4.
    data: r_range type range of matnr.
    perform test changing r_range.
    *& Form test
    form test changing p_r_range like r_range.
    endform. " test
    REgards,
    Ravi

  • Passing many form fields to servlet

    Hi all,
    In my web application I need to populate a class with form values.
    From inside a JSP, it's quite easy:
    <jsp:useBean id="beanId" class="myClass" />
    <jsp:setProperty name="beanId" property="*"/>And the values are set automatically.
    Can use something similar to get form fields from inside a servlet? How can I have a bean instantiated with form values?
    Thanks!

    Not in the standard API, no.
    However the [url http://jakarta.apache.org/commons/beanutils/]Jakarta commons beanutils provides some handy utilities to do just this.
    Specifically the method BeanUtils.populate(Object bean, Map properties) will do what you are after - and IMO better than the standard JSP setProperty tag, because it won't treat empty string as if the parameter wasn't there.

  • Pdf files lack form field contents :(

    I'm a house call veterinarian, and all of my patients' medical records are in pdf files. I'd LOVE to be able to reference these records when I am driving around town, without having to lug around the laptop.
    I've found some great apps to transfer & view pdf's on the iPhone (FileMagnet & Felaur PDF are outstanding!) The trouble is that none of them can display my patients' data, which is contained in form fields. I don't want to edit anything in these fields, I just want to read it.
    Why is this feature missing? It would be so cool!

    Ok; so I will start adding usage rights to my forms and using the
    script, which hopefully will help.  I'll also add in the completion
    instructions that the user should (preferably) complete and save the
    form using Adobe Reader (;)opposite of what I've been saying) or Adobe
    Acrobat Professional.  And, if they open the form through the "Preview"
    application there may be problems with their and our ability to view
    and/or print the completed form. 
    On my end, with the script, I still should be able to see and print the
    form.
    Now, here is the message I received from one user which seems to add
    more confusion:
    "I have definitely found something weird....When the files are opened
    using either "Preview" or "Adobe acrobat Professional" they are both
    open and complete as seen on the screen, but when I try to print them,
    the forms will only print when I open them with Preview.  They are
    completely blank (apart from the forms themselves) when opened with
    Acrobat (despite me being able to see the completed form, which includes
    everything that I typed into the form, on the screen)."
    This is a huge problem with interactive forms...I don't understand why
    Adobe hasn't fixed it.
    Please keep any words of wisdom coming; I can't thank you enough.
    Glenda

Maybe you are looking for

  • Functional Area field not getting populated in the AUFK table

    Hi Friends, The table AUFK is the table for Internal Order master data. The issue which we are facing is: In a particular Order type, the field 'Functional Area' is suppressed in the field status group for the order master data. But the cost centers

  • HP Officejet Pro X476dw MFP Wireless Connection Lost

    Setup HP Officejet Pro X476dw MFP (hereafter MFP) connected wirelessly to Apple Airport Extreme Base Station (AEBS).  Two MacBook Pros (MBP) also connected wirelessly to AEBS.  MFP has been assigned a fixed IP address which has been removed from the

  • Which is better and why a = new String("AA") or a = "AA"

    Hi, Which is better and why String a = new String("AA") or String a = "AA" Does invoking a construtor waste memory? Please explain in detail. Thanks in advance Deepak

  • How do i mark email as read

    Hello, I have several email acounts, receive numerouse emails daily, many I read on my Mac, but it doesn't syn the read emails,  how can I do this with having to go in and re-read each email?

  • Quicktime images suddenly won't work on the internet

    I have recently had problems accessing movie trailers and even sites with links that need Quicktime to view them. What happens is that I get a faded Quicktime icon with a question mark over the top of it. I have checked all my preferences, including