How do I pass a form field to javascript?

Hello,
I want to pass a value from my JSF form and popup a window to allow users to pick a value. Then return the value to the field I passed.
This is not working, the field passed is always null;
Thanks
Frank
I call my window popup like this from hyperlink onClick:
Popup("form1:doctorName");return false;
Here is my javascript Window popup:
<script language="JavaScript" type="text/javascript">
function Popup(destination) {
var FieldValue = document.getElementById(destination);
var win=window.open("selectDoctor.jsp?name="+FieldValue, "DoctorLookup", "left=100,top=10,width=480,height=480,status=no,toolbar=no,menubar=no,location=no,scrollbars=yes");
win.focus();
</script>
Here is the destination JSF page:
public void init() {
javax.servlet.http.HttpServletRequest req = (javax.servlet.http.HttpServletRequest) getExternalContext().getRequest();
String name = req.getAttribute("name");
name is always null;

Does this help? http://blogs.sun.com/divas/entry/adding_a_popup_window_to

Similar Messages

  • 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.

  • I paid for exportpdf and everytime i try to use tool on pdf, it asks me to subscribe. i have to log into website EVERY time. not acceptable.  how can i export only form fields that were filled in?

    i paid for exportpdf and every time i try to use tool on pdf, it asks me to subscribe. i have to log into website EVERY time. not acceptable. Some forms can't be saved so having to log in and only use webtool to upload a saved pdf won't work.
    as well, how can i export only form fields that were filled in if I can get pdf to save to computer?

    Hi kstine,
    I can see why that would be frustrating! Have you tried selecting Stayed Signed In underneath the Adobe ID and Password boxes when you try to log in?
    What did you use to create the PDF form? If you used FormsCentral, form data is saved to your online FormsCentral account. If you have Acrobat, you can export form data as described  here: Adobe Acrobat X Pro * Manage form data files
    Best,
    Sara

  • How we create dynamic add form field in web form

    How we create dynamic add form field in web form?

    Hi,
    Thanks for reply.
    I need to create a form in which "add more" input field dynamically. For
    example sometime we need field on or more. Please look at the demo, I need
    to create form as per demo in business catalyst:
    http://www.openjs.com/scripts/examples/addfield.php

  • How reset Acrobat form field using javascript API

    How reset Acrobat form field using javascript API

    There are several ways:
    resetForm(["Text1"]);
    or
    getField("Text1").value = getField("Text1").defaultValue;
    George

  • How do I use one form field to enter data into another form field?

    Does anyone know how I can code a form so that when I select
    a name in one drop-down form field, I can ensure that the person's
    e-mail address will appear in another text field?
    Thanks.

    Thanks Roel,
    I remember that I tried to define multiple DML. but it did not work for Apex gets confused.... which items belongs to which table...
    instead-of-triggers (to process the inserts/updates/deletes) Can you pls, elaborate more on this solution ... ?
    Regards,
    Fateh..

  • How can I pass a value field to a global variable?

    I have a doubt,
    I wnat to know if is possible to pass a value field to a global variable inside of DataFlow?
    That a try to do is at the time to execute a JOB on line (real time), depending of the value field that i receive, only certain DATAFLOWS will be executed  depending of the value field.
    I hope you can help me.
    Kind regards!!!

    It can be done via various ways, your approach is kind of odd, though.
    You are saying you have one kind if Input message, depending on the flag you want to do different transformations. The way you envision that is by loading that flag into a global variable and use different dataflows then.
    Can you use different dataflows within one Realtime Job? Yes, usually the first loads an in-memory datastore.
    Can you write into a global variable? Yes and No. Not directly, but you can write the value into e.g. a database and using the sql() function read it from there. But why would you. You could write it into the in-memory datastore. And then you run your n dataflows, each has a filter. So only one of these dataflows will actually process the data.
    Are there other approaches? I would have a Case transform at the beginning and route the data into different queries depending on the data. So all in one dataflow. Your approach is fine for a batch dataflow where a dataflow is started, does something and then ends. But that's not how it works in Realtime!

  • How do I cause a form field to raise its blur event?

    I have a web form that displays an editable pdf document.  When a user clicks a button the form will get validated.  If one of the fields being validated has the focus its value will not get updated when I need to do the validation.  For example, if I am validating the First Name field and I type text in it and then click on a button (from the web) to cause validation, the document says the field is invalid because there is no data.  If I hit tab on the field to focus a new field the validation works fine.  How can I cause the field to get updated?  I have tried to create an empty form field and focus to that first but that does not work.

    Nope, I have a button on the website that the user clicks to send a validation request.

  • In Adobe Acrobat XI Pro, how do I validate a form field so that it's numerical value is less than or

    I have one numerical field named "B," and I need to validate it so that it is less than or equal to the value of another field named "A." I can't figure out how to do that!

    OK, so the custom calculate script for field B could be something like:
    (function () {
        // Get field values as strings
        var sA = getField("A").valueAsString;
        var sC = getField("C").valueAsString;
        var sD = getField("D").valueAsString;
        // Only perform the calculation if all fields are filled
        if (sA && sC && sD) {
            var sum = +sC + sD;
            event.value = sum;
            // Alert the user if the sum is more than A
            if (sum > +sA) {
                app.alert("Error message goes here");
        } else {
            // Blank this field if all fields are not filled in
            event.value = "";
    Instead of (or in addition to) an app.alert popup, you could place this message in a read-only form field, and clear it if there is no error condition.

  • How do I create a form field?

    How do I create a SSN field in my form that is mask?  example: once the user enters the information it will look like this:  SSN *********
    Thanks for any help!!

    After filling out the form, hit the submit button, the next form pops up showing the person it will go back too, hit send then the "Save As" Box pops up and at that time the SSN field goes blank. See attached. This is driving me crazy, what am I doing wrong?? Thanks for your help.

  • How do I lock some form fields, but not all?

    How do I create a form with interactive form fields where certain fields can be locked after being filled in, and others remain unlocked so the customer can interact with it?
    My workflow looks like this:
    I created a PDF with open form fields for my client to distribute to their salesmen.
    Salesmen receive a call, fill in the information gathered. (name, address, services, price quotes, etc)
    Salesmen email the pdf form to the customer. All fields that they filled in now need to be non-editable, EXCEPT an "I agree" checkbox and a signature line.
    Help is greatly appreciated!
    Michael

    Hi Michael,
    Before I go too deep into a suggestion, I need to know if you are using electronic digital signatures for signing the document? Or, are you expecting the customer to print the document, sign it with a pen and fax it back? The reason I ask is you could use digital signatures to lock specific parts of the document, but if you're not using them I won't bore you with the details.
    Thanks,
    Steve

  • How do I create a Form Field Template?

    Does this not exist in the new version of Document Cloud? I would like to be able to add form field layers for signing an Invoice where the account information is going to be different each time I use the form - so the standard template will not work.
    Thanks!

    First of all, it's still possible to add library documents for pro agreement. This discussion centers on creating and use  re-usable form layers.
    So instead of having a document plus fields, this feature let;s you create a template of just the fields, which can be stamped on uploaded document.
    The help article from earlier, only discusses the second part  on how to stamp these layers on an agreement.
    It doesn't explain how to create field layers. Creating form layers is done by going to the dashboard>add Template to library.
    In an account that support it, it's here you get the option to create a reusable form layer.
    now as far as I'm aware this field layer feature only ever has  been a feature in multi user accounts. (So old echosign team accounts and higher) In the Document cloud that would be Document Cloud Enterprise premium.
    I even checked with an old pro account which hasn't been updated to the Document Cloud, and that doesn't this feature either.
    if you did indeed used to have reusable form layers as an option, were you using an Echosign pro, or a different type of account?
    However I'll check with our Product management to see if perhaps this feature can be made part of the Pro account.

  • How do I pass a form value to Google Analytics

    I would like to pass a form value to Google Analytics. ie. if the user enters a value and submits the form, on the confirmation page I'd like to read the value and other form fields and pass those populate the Google Analytics tracking code ie. populate this withthe form values:
    _gaq.push(['_addItem',
          '1234',         // order ID - necessary to associate item with transaction
          'DD44',         // SKU/code - required
          'T-Shirt',      // product name - necessary to associate revenue with product
          'Olive Medium', // category or variation
          '11.99',        // unit price - required
          '1'             // quantity - required

    How about this - bind an ajax call to google analytics to the form submit button (change the type from submit to button or suppress the default event), having the form itself only submit after the ajax call is successful? No need to even worry about the confirmation page then.

  • How To Make A Tabular Form Field Conditionally Readonly

    Hello.
    I am using Apex 4.0.1. I've created a tabular form on the EMP table and have made the ENAME column a select list that is being sourced from a simple SELECT query like:
    select distince ename d, ename r from emp order by 1
    When a user selects "KING" as the value, I would like this ENAME field on this specific row in the tabular form to become readonly. If some other value is chosen from the ENAME drop down, then this ENAME field should remain "changeable".
    If the user clicks the "Add New Row" button on the form, a new row should be added to the bottom of the form with this ENAME field as "changeable". Only if the user selects the "KING" value from this ENAME drop down should this filed become readonly.
    Does anyone know how to go about doing this kind of conditional readonly on a tabular form field?
    Thank you for any help.
    Elie

    Hi Little Foot (I do like that name).
    Here's the link to my thread: "How to conditionally make a specific row in a tabular form readonly":
      Re: How To Conditionally Make A Specific Row In A Tabular Form Read Only.Hope this helps you as much as it does me.
    Elie

  • 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.

Maybe you are looking for

  • CA-CAD: Integration SAP - Autocad

    I have SAP ERP 2006 SAP enhancement package 2, SAP GUI 710 and Autocad 2005. We are working with the RE-FX module. How can I install SAP Menú in Autocad? The autocad interface is an Add-on of the SAP GUI? Thanks a lot, phm.

  • Keeps getting kicked out of my camera roll!?!

    I have the iPhone 4 and i just put the most recent update on it...but now everytime I click on photos it sends me to my camera roll and my photo stream well when i click on my camera roll album to look at my pictures it kicks me out and goes back to

  • Apache on Windows XP Problem

    Dear Experts, I was wondering if anyone could kindly help me. I have an Oracle Database installed on my pc and with installation Apache was also installed. The problem I have is I cannot access the web server. I am using Windows XP. From windows if I

  • Dropdown Menu CSS Style

    Hi! I am trying to create a dropdown menu in Dreamweaver. I have watched several tutorials and read many how-to guides and my html looks fine, but editing the style is really throwing me off. I am a beginner to Dreamweaver, so I am unsure of the prop

  • No Audio in Safari after DVD-Playback via "optical out"

    Hi, i'm using an optical cable to connect my Mac Mini to a hifi receiver. Audio works great in Safari & Firefox and so on, even digital out (dts, Dolby Digital) is working with Mac DVD-player. But after DVD-playback the audio doesn't work anymore in