Passing form field values, to an external script, in a URL

We have a dynamic, Reader Extended form Livecyce where we have to pass two values selected by the user to an external script. The values should be passed via a URL and static entries, but needed to change can be based on user input.

I tried variations on the following example, without success.

Form1.Page1.button::click - (JavaScript, client)

var userselected1;

userselected1 = form1.page1.field1.rawValue;

var userselected2;

userselected2 = form1.page1.field2.rawValue;

xfa.host.gotoURL ("http://ourdomain.com/script.php?selected1=userselected1 & selected2 = userselected2" "");

Thank you

Ron

I have it! There is probably a more elegant method to achieve, but the script below works for us. A new page opens in a browser and displays information related to the variables passed to the script.

Form1.Page1.button::click - (JavaScript, client)

newURL1 = 'http://ourdomain.com.com/script.php?selected1=';

newURL2 = userselected1;

newURL3 = "& selected2 =";

newURL4 = userselected2;

myNewURL = newURL1 + newURL2 + newURL3 + newURL4;

app.launchURL (myNewURL, true);

Hope this helps someone else!

Tags: Adobe LiveCycle

Similar Questions

  • Get the names and form field values

    Hi everyone please help me

    I tried the following code, but it returns me the result as ("found no fields")

    I'm not able to reach my pdf here, I tried with a method more evenly, always it returns nothing.

    When I went through the Forum, I heard about LiveCycle Form. If my pdf is Livecycle form based so please give me the code to reterive the form fields names and values,

    method 1:

    ' / / Let's start

    Set WshShell = CreateObject ("Wscript.Shell")
    WshShell.run "c:\F4.pdf Acrobat.exe.
    While not WshShell.AppActivate ("Adobe Acrobat"): 1000 Wscript.Sleep: Wend


    ' / / Set/Get Acrobat objects
    The App value = CreateObject ("AcroExch.App")
    Set AVDoc = App.GetActiveDoc
    Set PDDoc = AVDoc.GetPDDoc
    Define the JSO = PDDoc.GetJSObject

    ' / / Search fields and extract the Name value +.
    txt = «»
    If jso.numFields then
    for i = 0 to jso.numFields-1
    FN = jso.getNthFieldName (i)
    ' msgbox (x)
    the value of f = jso.getField (fn)
    F.value = FV
    txt = txt & fn & "=" & fv & ";"
    next
    MsgBox (txt)
    on the other
    MsgBox ("no fields found")
    end if

    Set AVDOC = Nothing
    Set PDDoc = Nothing
    Define the JSO = Nothing

    Method2:

    MyFile = "C:\output.pdf".
    Set AcroExchApp = CreateObject ("AcroExch.App")
    Set AcExAVDoc = CreateObject ("AcroExch.AVDoc")
    bOK = AcExAVDoc.Open (myFile, "")
    AcExAVDoc.BringToFront

    sMsg = «»

    If (bOK) then
    Set AFormAut = CreateObject ("AFormAut.App")

    If AFormAut.Fields.Count = 0 Then
    sMsg = "No there there no field (s) to read this PDF file"
    On the other
    sMsg = "There are" & AFormAut.Fields.Count & "fields in this PDF document.
    End If


    For every FormField in AFormAut.Fields
    FieldName = FormField.Name
    FieldValue = FormField.Value
    ' MsgBox AFormAut.Fields (Fieldname). Value
    sMsg = sMsg & vbLf & "," & Fieldname & "," & AFormAut.Fields (Fieldname). Value & "," & FormField.IsTerminal
    MsgBox SMsg

    Looks like there is no form field.

    Could you please tell me, how we can attach files in this forum. While I will attach my Pdf file

    You can put the file on acrobat.com ( https://acrobat.com/ ).

  • ActionScript & amp; change form field values

    I am building a form using flash forms. I have a particular field by default the value is 0.00. I want to make an onchange actionscript that will dynamically change the value of form field to 0.00 if the user deletes the value out of the field and leave empty.

    Please be nice... I know that my actionscript'ing is poor (and probably looks a little bit more JS what did) LOL

    < cfsavecontent variable = "zero_myfield >"
    If (myfield.text == ") {}
    MyForm.MyField.Text == "0.00";
    }
    < / cfsavecontent >

    < cfinput type = "text" name = "MyField" onchange = "zero_myfield" >

    I know that you can manipulate the value of a field to form easily with javascript, but how to do the same thing with actionscript? Pointers would be appreciated!

    Thank you!!

    No need for a function, don't do it in the tag

    Ken

  • How to create a script for the calculation of the VO2max using text on a pdf form field values.

    I'm trying to create a script that calculates the VO2max based on user input in several text fields.

    My form is set up so that the user can enter values in the 4 fields of text:

    1 weight = weight in kilograms

    2. age = age in years

    3 time = time to walk 1 mile in decimal

    4. the heart rate (HR) = heart rate recovery immediately after you have finished walking 1 mile

    The VO2max equation that I use is:

    VO2max = 132.853 - (0.1692 * weight)-(0.3877 * Age) + (6,315) - (3.2649 * time)-(0.1565 * HR)

    After the user enters values in 4 text fields, I want the text of VO2max field automatically calculate the above equation and display the result to the user so that the user doesn't have to get all those numbers into a calculator.

    Any suggestions on how to write the script?

    Assuming that your domain names are what you entered in the formula, you can use the simplified field notation:

    132.853 - (0.1692 * weight)-(0.3877 * Age) + (6,315) - (3.2649 * time)-(0.1565 * HR)

    If you want the value to display only after al the data fields are complete you need to use a JavaScript calculation:

    function GetField (cName) {}
    oField var = this.getField (cName);
    if(oField == null) app.alert ("field of error for access to the" cName + "\nPlease verify the name of the field.", 1, 0 ");
    return oField;
    }

    var weight = GetField ("Weight");
    var Age is GetField ("Age");.
    var time = GetField ("Time");
    var h = GetField ("HR");

    Event.Value = "";
    If (Weight.value! = 0 & Age.value! = 0 & Time.value! = 0 & HR.value! = 0) {}
    Event.Value = 132.853 - (0.1692 * Weight.value)-(0.3877 * Age.value) + (6,315) - (3.2649 * Time.value)-(0.1565 * HR.value);
    }

  • How to pass parameters/field values from one screen to another screen in blackberry

    Hi all

    I have two screens in my Application UI that is, login screen and continue the screen.

    Login screen has some fields of seizure as a user name and password and default language (French or English) for the application (Group of radio buttons).

    There is a button for the next who directs the user to another screen.

    This second screen has an input field. This input field is mandatory. The user can only go further if it is entered in this field of entry with valid values (i.e. numbers only).

    This screen has continue button so that the user can go further is on the next screen after you have entered a valid value in the field.

    Now, when the user clicks the continue button on the second screen so I have to validate the credentials of the user, he has provided in the first screen. Also, I need set the locale for the language he has provided to the login screen.

    So, to summarize.

    (1) user enters user name, password and language on the first screen. The user clicks NEXT and goes to the second screen.

    (2) on the second screen, the user enters a name click continuous. ((3) user credentials are validated, defined locale and user is illustrated below third screen).

    So, my question is how do I access username, the password, the language of the first screen in the second screen fieldChanged method?

    fieldChanged second display method will be called when user enter a value class we second screen and clicks continue.

    Please advice

    Thanks in advance...

    Store text values in the fields in your application class, and then pass it as a reference to each form or retrieve your instance of UiApplication and cast to the name of your class.

    public class MyApp extends UiApplication {   public String username;   public String password;   public String language;
    
    }...
    
    // Your first screen
    
    public class MyFirstScreen extends MainScreen {   private MyApp _app;
    
       public MyFirstScreen()   {      _app = (MyApp) UiApplication.getUiApplication();
    
          // Set your fields      // AS AN EXAMPLE, you can use:      // _app.username = field1.getText();      // _app.password = field2.getText();      // _app.language = field3.getText();   }}...
    
    // Your second screen somewhere
    
    public class MySecondScreen extends MainScreen {   private MyApp _app;
    
       public MySecondScreen()   {      _app = (MyApp) UiApplication.getUiApplication();
    
          // Access your fields      // you can use:      // _app.username      // _app.password      // _app.language   }}
    

    Now, this is one of the many ways to do it, but it works in its simplest form.

  • Bulk change the form field values?

    Hello

    Throughout our Eloqua installation, we have a couple of forms of adding contacts to our facility without a family name or the company. As a result, we are unable to sync these contacts to Salesforce so that we can make on them. I would like to change these contacts in bulk so that we can give them a name placeholder and company and then push them to Salesforce.

    I have heard that you can bulk edit things by going to settings-> fields and views, and there is an option within the Population of details field, but because we have more than 1000 unique values in these areas (most of our contacts have correctly added data), we can not view the values or change through this screen. What other options are there for safely editing these values on these contacts and then pushing just such contacts to Salesforce?

    Thank you!

    Brian

    Proceed to the step that you want to add and click on the black arrow down. Choose 'add members at this stage. " You will have the possibility to add a contact group at this time.

  • Form fields values level how chang

    Hi...........

    I want to change the values of the fields

    Here the name of the field-> mtl_eam_asset_attribute_values Depr_method (table name)

    Values-> DB, SLN (methods)

    I want to change DB to "Depreciation_method", another a SLN to 'Method of the Stright line' at the form level how
    Please give me a solution.
    Forms 10g


    Concerning
    Maha

    Hello
    I think that you posted the same question in another thread. Its best to maintain a single thread for the same topic.
    you have block db?
    If yes then you have two options
    1 item in the list as suggested earlier.
    2 control point. While in the post and when-validate-point of the iem, you can assign the corresponding description.
    If your block is not a db block, then you can use decode function when filling the data in blocks.

  • To access the form field values

    Hi all

    I have a form with several fields. I need to change the value of a field as 'Y' and send the form in the java code.
    I used the following
    FacesContext fctx = FacesContext.getCurrentInstance ();
    RichInputText = (RichInputText) fctx.getViewRoot (.findComponent("pt1:r1:Active1")) active1;
    If (active1. GetValue(). ToString(). Equals("Y"))
    active1. SetValue ("N");
    on the other
    active1. SetValue("Y");
    This changes the value, but if I run "Commit" operation using
    bindings.getOperationBinding("Commit").execute ();
    its not saving in dB.

    My usecase:
    By clicking on the button, need to change the value of the indicator (field) and submit the form that has to go to DB.

    Please suggest me the right way.

    Concerning
    Suresh Camille

    can you explain your case to use a little?
    Your first message, I understand you want to access the value of Active1
    You can use this code:

    // get the binding container
    BindingContainer bindings = BindingContext.getCurrent().getCurrentBindingsEntry();
    
    // get an ADF attributevalue from the ADF page definitions
    AttributeBinding attr = (AttributeBinding)bindings.getControlBinding("test");
    //set the val
    attr.setInputValue("newval");
    //get the val
    String val = (String)attr.getInputValue();
    

    your second post, I see that you are editing the text. So I'm a bit confused.

    Timo

  • MM_Username as default form field value?

    I have a table main 'CONTACTS' identified by "CONTACTID".

    I also have a table relational 'CONTACTNOTES' identified by "NOTEID" and related ID 'NOTESCONTACTID '.

    I created a page of note insertion, pulling CONTACTID and insert a default value for a field in the Insert page.

    Also on this note insert page, I would like to be able to insert a default value of "MM_Username" for one of the fields. How do I get there?

    Second, for the field CONTACTID by default, how can I do this protected so that no one can change it accidentally (of course if it has changed, he wouldn't wear the good record of CONTACTS)?

    First of all, try changing the ContactID in a hidden field and only for the user
    Perhaps display it on the page also.

    Regarding the username in your Application panel under click links the +.
    and choose Variable Session and type MM_Username. Drag it where ever you
    want it to appear, including the default value for a field.

    HTH

    Piers

  • Pass the value of form field into the message of confirmation box

    Hello

    I created a confirmation box that fires when a user presses a button on the form.

    Under "URL redirection" button, I have the following:

    JavaScript:confirmDelete('Please_Confirm_Reduction_of_Call_Off_Pick_requirement.','REDUCE_CALL_OFF');

    This in turn calls a PLSQL process that perform a database update for a form called P4_PICK_LINE text field

    Is that I would have to include the P4_PICK_LINE in the confirmation message, i.e. "Please confirm reduction of call off sampling requirement pick123' where pick123 is the value of P4_PICK_LINE

    I know that I can pass in variables like session & APP_USER. etc in the message of confirmation, but not sure about text form element values.

    I use the apex 4.0.0.00.46 on windows version 7.

    Any help would be great


    Thank you
    Chris

    Edited by: Cashy on 05-Sep-2012 03:44
    javascript:confirmDelete('Please confirm reduction of call off pick requirement ' + $v('P4_PICK_LINE'),'REDUCE_CALL_OFF');
    

    A complete list of javascript API functions can be found here: http://docs.oracle.com/cd/E10513_01/doc/apirefs.310/e12855/javascript_api.htm

    You may not use session variables unless your variables are sent to the server. As long as you don't offer you will rely on javascript ;)

    Concerning

    Nico

  • How to pass a value of a form field to another?

    Hello
    Posted this yesterday, still no joy.
    Let me make a drawing.
    I have two forms.

    Form of connection of formula 1.
    ---------------------------------------------------------------------------------------------------------

    Field - username (P48_USERNAME)

    -The button register. This creates a user on the user table. (This works)
    Login - button. It does not work.
    No password required.

    ---------------------------------------------------------------------------------------------------------

    Formula 2 main Menu

    Field - user (P4_USER).

    ----------------------------------------------------------------------------------------------------------

    Everything I type in the formula 1 (P48_USERNAME) I want it to appear in the main menu form (P4_USER).

    It should be very easy.
    Probably something wrong.
    Yesterday tried: APP_USER and Branches.
    Impossible to run.
    I have very detailed some instuctions please.
    My first application.

    SORRY!

    Zac.

    There are a bunch of ways to do it. It's the way I am using:
    You have a form that collects things and it passes to the following form:
    collection form:
    creating a branch
    (probably attached to a button. (so the field "when button pressed" contains the button you)
    intention of invoking this branch).

    branch to page (page updated for example number 4)
    request (this is something that you can use on the home page to distinguish what branch sent it your way)
    example of defined these elements. Here, I have ryear and restid of 2 parts in stock

    set these items  P4_RESTID,P4_RYEAR
    
    with these values: &P3_RESTID.,&P3_RYEAR.
    

    BTW the url from stuff in a branch uses the colon you may not use the colon between the constituents, so the amperdot
    form is the only thing that flies here. As I said, the note "with these values", each begins with ampersand and
    ends with a point.
    I hope this helps.

  • using the value of a form field in another form field

    I hope that I can describe my problem. Please bear with me

    I have a worksheet with a lot of form fields. For most of the text boxes and a few drop-down list boxes.

    I use a lot of custom calculation scripts to determine what information auto fills in most of the fields.

    But I have problems with a last form named ORTHOPLANID field.

    The value that it auto fills depends on two other fields. A field is called MEDOOP. The other field is SUPPDENPLANID. I tried to use an if/then/else statement for ORTHOPLANID but it does not work. I'm guessing it doesn't b/c, the value of the MEDOOP field is generated from an if / then statement so I don't know whether or not the script recognizes its value as a real value.

    Is there another way to get around this? I don't know if I have clearly explained the problem, but I hope someone can help

    Thank you

    Brandy

    I think I know what the problem... You did not drop-down fields

    commit their selected values immediately (under Properties - Options). As one

    result, the calculations take place when you exit the field (i.e. click)

    outside), and not when you do a

    selection.

  • Form field with comma delimited list of values to cfc

    I have a form that moves from a field to a page of the action with a value of delimited by commas.

    For example, the domain name is: Program_ID

    value of program_ID is: 31, 32

    I am able to deal with this variable in a list and check its length and loop over the list before passing to a cfc using the attached code:

    When I try and pass the variable as a string of a cfc and call a query, see no longer recognizes my var in list form.

    This is why the related code does not work...

    Is there a type specific var that cross as a list and allows me to execute the block of code attached?

    Thank you

    Craig

    OK, answered my own question... Here is the answer for those who are interested...

    initialize the var for CFCs in the cfinvoke statement

    Pass the argument to cfc string

    Use listqualify to parse the list of CFCs and to define new var

    Use the new var in the following statement in the sql code:
    ((Program_ID) TO (#PreserveSingleQuotes (selectedProgramID) #))

    The following code runs a form field with a single value or a value of delimited by commas.

  • Pass form value when the click on

    Hi all

    How can I pass the value of a Checkbox control when it is selected for a hidden value in another form on the page?

    And if there is more then a checkbox clicked on it must pass all checked values.

    Any ideas?

    > any help in the JavaScript file?

    I wouldn't do it this way. You then make the features of the
    page depend on activation of javascript of the visitor.

    Server script is the best (and easiest) to do this.

    --
    Murray - ICQ 71997575
    Adobe Community Expert
    (If you * MUST * write me, don't don't LAUGH when you do!)
    ==================
    http://www.projectseven.com/go - DW FAQs, tutorials & resources
    http://www.dwfaq.com - DW FAQs, tutorials & resources
    ==================

    "theBeachBum" wrote in message
    News:fgfs8i$I1c$1@forums. Macromedia.com...
    > Hi Murray.
    >
    > I thought this, but tried to avoid all this code... thought
    > about the event onClick javascript might be easier... all help to the
    > javascript?

  • Treatment options for form (use the value of a form field to select a shared list or a web redirect page)

    Hello

    I tried something with the processing of the forms which doesn't seem to work. I wonder if the function really works or if I'm doing something wrong.

    Here is an example of what I do: I have a form that I want to use. I add "Web Page redirection" processing step to my form. When I click on the processing step to set up, under "General settings" there is an option that says "Choose how the launch of destination page is selected." In this drop-down menu, there are three options: always redirect to the same landing page, use a drop-down list to select the landing page and the value of a form field allows you to select the destination page. I have a hidden field on the form that contains the URL of the web page to which I would like to redirect. When I select 'Use the value of a form field to select the landing page', I select the hidden field to the field that contains the URL of the web page to which I want to redirect. It's my setup. However, when I submit the form, nothing happens, I do not redirect to the URL contained in the hidden field... This function still works? I'm doing something wrong? I can't seem to get the function "Use a drop-down list to select the destination page" to work either. The same thing happens when I try to use the "Add Contact to shared the list" processing step. I add the name of the list that is shared in the field hidden, but the contact does not appear in the shared list... These functions still work? If yes how do I configure them?

    Thank you!

    Well, I understood the problem of the shared list... You must add the ID of the list shared in the hidden field. I had to use Firebug to see the real ID of the shared list. Once you have the ID, use you it as a static value in the field. If the HTML code of the form will look something like this:

    If you do not use the lookup data ID. You use the ID real asset on the shared list. You must use something like Firebug to find.

    I'm glad everything is working.

Maybe you are looking for