Controling HTML form Radio Button

I'm working on automating the check-in and check-out of items in a process queue, but the process queue is web-based. I can input usernames, lot IDs, passwords, and "press" submit buttons programatically by using ActiveX IWebBrowser2 properties (and related).
Here's what I currently have, mostly stolen from a post from 2005.
The Old Post:
http://forums.ni.com/t5/LabVIEW/How-to-fill-out-and-submit-a-web-form-using-LabVIEW/m-p/1018248/high...
As I said, I can input usernames and passwords and submit the form, but I am having trouble setting the value of a Radio button.
Here's a snippit of what I'm trying, and my VI is attached. I've also attached the relevant HTML.
Solved!
Go to Solution.
Attachments:
web page radio button HTML.txt ‏2 KB
WIPTrac experiments.vi ‏23 KB

  Hello,
I have a html form compounds in two fields first and last name and a sibmit button, how can I control it in labview
Attachments:
form.png ‏60 KB
forme.vi ‏19 KB
form.txt ‏1 KB

Similar Messages

  • Form/Radio Button/Email Question

    How can I fix the form on http://www.cec-waterjet.com/Contact/index.html so that it sends an email to the contact whose radio button is selected?

    The script you have now should work, it's just not very secure. I meant find a different script where, instead of entering the actual email address in the recipient field, you entered a key or index that points to the address that's been entered somewhere in the script or configuration file, so the email address isn't anywhere in the HTML. I've got an (old-ish) PHP script that works that way here:
    http://www.mindpalette.com/scripts/index.php#NMAnchor
    ...but if you need another CGI script like you've already got, I don't have any specific recommendations, sorry. It was just a suggestion :-)
    I removed your code from your message #2 to try to prevent that from getting spam harvested.

  • Form Radio Buttons or Checkboxes not created in Acrobat 9 Pro

    If this needs to be placed in another forum, please just let me know.
    I am using Acrobat 9 Pro - current version - 9.4.3.
    I am using Word 2010
    I am running Windows 7
    I have created a simple form in Word.  Using the guidelines from the white paper - Acro9_designforms.pdf provided by Adobe, those fields where I want a radio button insert a checkbox instead when running the Form Wizard in Acrobat.
    My sample is exactly the same as in the sample used in the white paper.
    I used a circle symbol from the Wingdings font, as recommended by Adobe.
    Salutation
    O Mr.
    O Ms.
    O Dr.
    The end result is still a checkbox, even though it is a circle in the display.
    What am I doing wrong?
    I do not want to use LiveCycle Designer, as once the form is created in LiveCycle, the form fields can no longer be edited in Acrobat and I must maintain the ability to edit in Acrobat.
    Thank you for your assistance.

    Oh, the Wizard is a fabulous tool for basic forms.  And, since Adobe has given an extensive list of 'guidelines', which is what I am testing, I thought I would ask for feedback from those who do use it and from those who have had success in using it.
    The Wizard is mostly terrific, if you use the guidelines when setting up the source document.  It saves a lot of manual field creation and fixing later.  This one, though, is not working as expected.   So, I might be doing something wrong and the responses I seek are from those who have had success with the feature - not with manual workarounds, which of course we know can be achieved.  :)
    Nothing is "magic".  I don't think either I or Adobe are implying that it should be.  However, when they state a feature works in a certain way and I am not getting those results, I like to explore why.  Silly me.  hahaha
    The example I gave in my initial post is the only thing in the form, as I am testing the features for when I present this topic.
    I am merely trying to determine if others are having success (or not) when creating their document initially in Word (for example), using the guidelines that Adobe states for Radio Buttons being created.  If there is a certain font that someone is having success with other than those stated by Adobe, I would love to know. For me, so far, it is not.  If it's user error, then I would love to know from someone who has had success.
    Here is what Adobe states as part of their Radio Button form field guidelines when setting up a document in Word, for example:
    § Use circular objects or numbered buttons to in a single row or column to indicate radio buttons.
    § Use group labels to the left of or above each radio button group – otherwise they will default to check boxes. Field names are determined from the group labels and individual button labels from the text to the right of each location.
    § Use the following text labels to have radio buttons created automatically: Yes/No, M/F, Male/Female, Mr/Mrs/Miss/Dr.
    § Use one of the following group labels to have radio buttons created automatically: Salutation, Sex, Occupation.
    thanks

  • Acrobat 9-forms-Radio buttons print different than check boxes

    I am using Acrobat Pro 9 to create forms.
    I've used both radio buttons and check boxes (that are circles).
    Forms were designed in InDesign with Zapf Dingbats as the open circles to be filled in.
    I used radio buttons when the user had to pick one over the other.
    I used check boxes when there were multiple choices or I wanted the user to be able to uncheck a box. (I used the circle style so they would look like radio buttons).
    The radio buttons are printing differently than the check boxes. It looks almost like there is an overlay on top of the actual open circle created by Zapf Dingbats.
    I checked the "appearance" window and there is no border or fill color on the radio buttons (same for the check boxes).
    Under the <general> tab, <common properties> is visible. I'm assuming it should be in order for the radio button to appear on the form.
    I would appreciate any input as to how to fix this.
    Thansk!
    Maureen

    That's just the way radio buttons are, and one reason I rarely use them in preference to check boxes. If Adobe wanted to, they could allow you to use any appearance you want for both the selected an unselected state of a check box or radio button, but they've actually further restricted your options over the years.

  • Calling PLSQL Stored Procedure From HTML Form Submit Button

    Hi there,
    I am having a little difficulty with calling a stored procedure using an html form button. Here is the code I have right now...
    HTP.PRINT('<form action=ZWGKERCF.P_confdelete>');
    HTP.PRINT('<input type=''submit'' value='' Yes '' onClick=''document.getElementById("mypopup").style.display="none"''>');
    HTP.PRINT('</form></div>');Here is the issue - I need to find a way to pass variables to this stored procedure so it know what data to operate on. This stored procedure will delete data for a specific database record and I must pass three variables to this procedure to make it work.
    Lets call them class_number, term, conf These three variables will be passed and the data will be deleted and the person will see a confirmation screen once the delete query has been executed.
    So ideally I would want: ZWGKERCF.P_confdelete(class_number, term, conf) and then the stored procedure would handle the rest!
    Seems pretty simple but I am not sure how to make this happen... My thoughts were:
    Pass the data to this html form (the three fields I need) in hidden variables. Then somehow pass these using POST method to the procedure and read using GET?
    Can someone clarify what the best way to do this is? I have a feeling its something small I am missing - but I would really like some expert insight :-)
    Thanks so much in advance!
    - Jeff

    795018 wrote:
    I am having a little difficulty with calling a stored procedure using an html form button. Here is the code I have right now...
    HTP.PRINT('<form action=ZWGKERCF.P_confdelete>');
    HTP.PRINT('<input type=''submit'' value='' Yes '' onClick=''document.getElementById("mypopup").style.display="none"''>');
    HTP.PRINT('</form></div>');Here is the issue - I need to find a way to pass variables to this stored procedure so it know what data to operate on. This stored procedure will delete data for a specific database record and I must pass three variables to this procedure to make it work. The browser generates a POST or a GET for that form action, that includes all the fields defined in that form. Let's say you define HTML text input fields name and surname for the form. The URL generated for that form's submission will be:
    http://../ZWGKERCF.P_confdelete?name=value1&surname=value2The browser therefore submits the values of the form as part of the URL.
    The web server receives this. It sees that the base URL (aka location) is serviced by Oracle's mod_plsql. It passes the URL to this module. This module builds a PL/SQL block and makes the call to Oracle. If we ignore the additional calls it makes (setting up an OWA environment for that Oracle session), this is how the call to Oracle basically looks like:
    begin
      ZWGKERCF.P_confdelete( name=> :value1, surname =>  :value2 );
    end;Thus the PL/SQL web enabled procedure gets all the input fields from the HTML form, via its parameter signature. As you can define parameter values with defaults, you can support variable parameter calls. For example, let's say our procedure also have a birthDate parameter that is default null. The above call will still work (from a HTML form that does not have a date field). And so will the following URL and call that includes a birth date:
    URL:
    http://../ZWGKERCF.P_confdelete?name=value1&surname=value2&birthdate=2000/01/01
    PL/SQL call:
    begin
      ZWGKERCF.P_confdelete( name=> :value1, surname =>  :value2, birthdate => :value3 );
    end;There is also another call method you can use - the flexible 2 parameter interface. In this case the PL/SQL procedure name in the URL is suffixed with an exclamation mark. This instructs the mod_plsql module to put all input field names it received from the web browser into a string array. And put all the values for those fields in another string array. Then it calls your procedure with these arrays as input.
    Your procedure therefore has a fixed parameter signature. Two parameters only. Both are string arrays.
    The advantage of this method is that your procedure can dynamically deal with the web browser's input - any number of fields. The procedure's signature no longer needs to match the HTML form's signature.
    You can also defined RESTful mod_plsql calls to PL/SQL. In which case the call format from the web browser looks different and is handled differently by mod_plsql.
    All this (and more) is detailed in the Oracle manuals dealing with mod_plsql - have a search via http://tahiti.oracle.com (Oracle Documentation Portal) for the relevant manuals for the Oracle version you are using.
    Alternatively, simply download and install Oracle Apex (Application Express). This is a web development and run-time framework and do all the complexities for you - including web state management, optimistic locking, security and so on.

  • Adobe Form- Radio Button!!

    Hi Experts,
    I am working on the Adobe Form in which the data is coming from the Backend RFC. So my DataSource is binded to the Bapi node.
    Now my requirement is to add Radio Button for which I have defined in the Dictionary SimpleTypes and binded an attribute to it.
    The problem is since my DataSource in the PDF Form is already binded to the Bapi node I cant get the data for the Radoi button from the attribute(Dictionary simpleType).
    Can somebody suggest me how to go about it in my case. Any useful Help will be given points.
    thanks,
    Vikram..

    Hi,
    You will have to define a value node and then copy values from model node to value node. This way you can define additional attrbute apart from the atributes for data.
    Let me know if you have any problems.
    Regards,
    Ashutosh

  • Forms- Radio buttons

    Hi,
    I've got a form that has radio buttons included which work fine. But what I want is, when a particular radio button is clicked then a new sub-menu will appear, and there will be a different sub-menu for each radio button. Apologies if I haven't explained it that well but I will post any clarifications should you need them.
    Thanks.

    You want to do a search for javascript and dependant radio buttons.  You should be able to get a script pretty quick.
    Gary

  • Forms - Radio Buttons as check boxes which turn into circles - Need them to stay as check boxes.

    Hi
    I am working on some forms for Teachers Reports it is a generic document for student reports. I have set the document in Indesign 6 and edited the pdf form in Acrobat Pro.
    The form consists of Radio Buttons (Check Boxes) as they have to score the child between 1-4 and the teacher is only allowed to select 1 box from out of the 4 boxes (hence radio buttons) .
    The problem we are having is that there might be 2-3 teachers that have to write and score each child's in a certain section of the report and they might use a PC or MAC to do this.
    For some reason, some of the reports have changed the Radio Button "Check Boxes" to a "Circle" both in the PDF and when printing and they need it to be a Check box. (In indesign this was set to Check Box and to print as a Check box)
    Some how after the teachers have used different computers the check boxes have changed to circles and we need to change them back to check boxes but is there a way to change them without having to go "Forms" > "Edit" > "Select all circles" > "Properties" > "Options" > "Button Styles" > "Change to Check".
    But it is not changing to all of the reports on some.
    Is there an easier option can select properties and search the "circles" and change to "check boxes" for the whole document?
    I really don't want to have to go into each report and have to change each individually or export and import the data in the forms and the teachers dont want to have to rewrite each report.
    Someone please help!

    Are all of the teachers using Adobe Reader (or Acrobat), as opposed to something like Preview on tha Mac or Microsoft Reader on Windows? Preview is known to corrupts PDF form in a number of ways, including converting radio buttons to check boxes. Microsoft Reader causes other types of corruption. Also, if you create the fields in InDesign, it uses non-standard appearances for the various states and even Reader/Acrobat doesn't always set them in the way you might expect, so it's best to create them in Acrobat.
    Your description is a bit confusing since you're calling them radio buttons and check boxes at the same time. Can you clarify what the original field type is?
    It is possible to set the various field appearance properties with a script, which could loop through all of the fields and make the needed changes, but without more information about what's causing the changes and exactly what the changes are, it's hard to suggest anything specific.

  • Cant fill a form (radio button)

    Hey.
    I frequently need to fill a form and I cant do so with my Ipad because at certain point I need to select an option with a radio button and the Ipad doesnt recognize it. The form also has square box and there I dont have a problem, I can check it. But when it comes to the radio (circular) button, I cant hit it and fill it.
    Why is this so?
    Thanks.
    (Sorry for my poor english)

    Radio button can be selected using the Safari App on the iPad, but the website has to be at least somewhat coded for mobile viewing.  See if you can zoom in on the screen before tapping the radio button, this sometimes help.  If in the end, you are still unable to complete it, try another browser like Chrome.  Some websites don't play nice with mobile devices and touch screens so you may get mixed results.  Apple uses Radio buttons in the forgot.apple.com website as well as many other I'm assuming and they all function fine from the iPad screen, so it is more than likely just the website you are utilizing.  Good Luck.

  • HTML Form Submit Button to call a procedure

    hi! been looking high and low across all forums and it seems there are specific users like myself having problems with submit button and pl/sql procedures. Hope someone can clarify on this.
    Scenario: created a html/dynamic page with a submit button(no java scripts, just plain <form action="schema.procedure" method="post"> etc) to pass values into a procedure to update database. In my case, i've hard coded the values in the procedure for testing purpose(thus my procedure don't receive any in parameters).
    Problem:
    Clicking on Submit button will result a page not found error.
    Solution read so far:
    Ensure that at least the Public has been granted Execute Access on that procedure, which i find funny cos I am logged in as the adminstrator having all the rights, heck, i even created the schemas, procedures and tables.
    Result for me:
    Page not found displayed, but when I highlight the url on that page (which is the complete address)and press Enter, the procedure went through and display the message in my procedure?!
    But if I clik on a link (pointing to the same procedure), the procedure went through immediately.
    I have tried:
    a) clearing the browser cache
    b) deleting archive versions of the page
    c) entering the whole address
    d) recreate the html page using pl/sql
    but still the same problem.
    Any advise on this? Is this a bug? how to go around this?
    Rgds.

    Hi,
    I did the following :
    1) created a procedure called test1 in schema portal30
    create or replace procedure test1
    as
    begin
    htp.p('Hi there');
    end;
    2) granted it to public
    grant execute on test1 to public;
    3)created a dynamic page like this:
    <HTML>
    <HEAD>
    <TITLE>Example</TITLE>
    </HEAD>
    <BODY>
    <form action='portal30.test1'>
    <input type="Submit" value="click me">
    </Form>
    <H1>Example of A Dynamic Page</H1>
    <ORACLE>select * from PORTAL30_DEMO.emp where deptno = :department</ORACLE>
    </BODY>
    </HTML>
    4) ran the dynamic page ,works fine
    Thanks,
    Anu

  • PHP Form Radio button

    Hello,
    I would like to change an existing list to a radio option on
    my pho form.
    http://opie.monkeyshrine.com/contact/contactus.php
    From this
    <select name="reason" value="<?php
    if(isset($_POST['reason'])) echo
    htmlentities($_POST['reason']);?>" tabindex="4" size="1"
    id="reason">
    <option selected>Tell Us Why</option>
    <option value="Beijing to Moscow">Beijing to
    Moscow</option>
    <option value="Moscow to Beijing">Moscow to
    Beijing</option>
    <option value="Vladivostok to Moscow">Vladivostok to
    Moscow</option>
    <option value="Beijing back to Beijing">Beijing back
    to Beijing</option>
    <option value="Only Mongolia">Only
    Mongolia</option>
    <option value="Tranzip Direct Options">Tranzip Direct
    Options</option>
    <option value="Other Reason">Other
    Reason</option>
    </select>
    to
    <input type="radio" name="trip" value="<?php
    if(isset($_POST['BM'])) echo htmlentities($_POST['BM']);?>"
    /> Beijing to Moscow</label>
    <br />
    <label>
    <input type="radio" name="trip" value="<?php
    if(isset($_POST['VM'])) echo htmlentities($_POST['VM']);?>"
    /> Vladivostok to Moscow</label>
    <br />
    <label>
    <input type="radio" name="trip" value="<?php
    if(isset($_POST['MB'])) echo htmlentities($_POST['MB']);?>"
    /> Moscow to Beijing</label>
    <br />
    <label>
    <input type="radio" name="trip" value="<?php
    if(isset($_POST['BB'])) echo htmlentities($_POST['BB']);?>"
    /> Beijing back to Beijing</label>
    <br />
    <label>
    <input type="radio" name="trip" value="<?php
    if(isset($_POST['Mongolia'])) echo
    htmlentities($_POST['Mongolia']);?>" />Only
    Mongolia</label>
    <br />
    <label>
    <input type="radio" name="trip" value="<?php
    if(isset($_POST['Direct'])) echo
    htmlentities($_POST['Direct']);?>" />Tranzip Direct
    Options</label>
    <br />
    <label>
    <input type="radio" name="trip" value="<?php
    if(isset($_POST['unsure'])) echo
    htmlentities($_POST['unsure']);?>" />
    Unsure
    except, I have done the group radio wrong and it doesn't
    insert anything on the reply.
    Here is the php post code
    $Indhold .= "Trip Type: ".$_POST['trip']."\n";
    $Indhold .= "\r";
    $Indhold .= "Why: ".$_POST['reason']."\n";
    $Indhold .= "\r";
    Please help me correct the radio group.
    Thanks.
    ps. can you also confirm the local time is displaying your
    local time?

    On Fri, 24 Nov 2006 08:08:32 +0000 (UTC), "yesmaybe"
    <[email protected]> wrote:
    > Please help me correct the radio group.
    Doesn't this (test page) do what you want? Try it DW.
    <?php
    if ( isset($_POST['clicked']) && $_POST['clicked'] ==
    'true' ) {
    echo "Trip Type: ".$_POST['trip'];
    ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
    Transitional//EN"
    http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="
    http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html;
    charset=iso-8859-1" />
    <title>Untitled Document</title>
    </head>
    <body>
    <form id="form1" name="form1" method="post" action="">
    <input type="radio" name="trip" value="BM"
    /> Beijing to
    Moscow</label>
    <br />
    <label>
    <input type="radio" name="trip"
    value="VM" /> Vladivostok to
    Moscow</label>
    <br />
    <label>
    <input type="radio" name="trip"
    value="MB" /> Moscow to
    Beijing</label>
    <br />
    <label>
    <input type="radio" name="trip"
    value="BB" /> Beijing back to
    Beijing</label>
    <br />
    <label>
    <input type="radio" name="trip"
    value="Mongolia" />Only
    Mongolia</label>
    <br />
    <label>
    <input type="radio" name="trip"
    value="Direct" />Tranzip
    Direct Options</label>
    <br />
    <label>
    <input type="radio" name="trip"
    value="unsure" />
    Unsure </label>
    <input type="submit" name="Submit"
    value="Submit">
    <input name="clicked" type="hidden"
    id="clicked" value="true">
    </form>
    </body>
    </html>
    Steve
    steve at flyingtigerwebdesign dot com

  • How to increment array that contains two clusters whose visibility is controlled by a visible property node and selected by a radio button.

    I am trying to use a property node: visible in order to enable or disable one of two clusters. These clusters are in a larger cluster and this larger cluster is in an array. The two clusters are controlled by a radio button (one labeled transistor and the other diode). When diode is selected, the corresponding diode parameters cluster should be visible and when transistor is selected, the corresponding transistor parameters cluster should be visible. In the mean time, the cluster of the device that is not selected should not be visible. There are at least 45 elements in the array (but not more than 45). Data is entered into each cluster (diode or transistor data) for each element in the array via the increment/decrement. The problem is when you select the first radio button (transistor) and enter data, when you increment the array for a new device selection, since a visible property node was used on the cluster, a loop is created where a new cluster is trying to be shown, but the old cluster is also trying to be shown (because it is the one referenced by the property node. How do I get rid of this loop and still be able to increment the array and keep my data intact for future use? Attached is the vi
    Attachments:
    ChooseScan.vi ‏17 KB

    You could try something like this.  However, if you know how to use an xcontrol, that would be a better way to implement the above functionality so that these UI characteristics are not a part of your main VI.  The problem with the above VI is that you're looping every 100 ms just to update your UI.
    Also, try using the "disabled" property node, instead of the "visible" one.  That way, the user will still see the options he has but they will be grayed out.
    Message Edited by Sudhir Gopinath on 06-25-2007 04:45 PM
    S G
    Certified LabVIEW Architect, Certified TestStand Developer, Certified Professional Instructor
    Attachments:
    ChooseScan_1.vi ‏19 KB

  • Radio Buttons - Vertical versus Horizonal

    In WebDB 2.2, I was able to get my form radio buttons to go across the page rather than down by adjusting the input width
    of the row that they were on, making the width fairly wide. In portal, I cannot get this to occur.
    Looking at the HTML source generated, portal puts a <BR> at the end of each button option, and WebDB does not.
    Any way to accomplish this? Thanks.

    Hi
    You can achieve this custom forms. But the lov should be a static one. I am giving a sample below
    to explain better.
    Example
    Create a custom form based on scott.emp. Run the form and from the html source copy the radio button tags.
    Edit the form and goto the custom section and replace <TD><#DEPTNO.ITEM#></TD> with copied tags and remove
    the <br> tags. It would look like something below
    <INPUT TYPE="radio" NAME="FORM_0508231444.DEFAULT.DEPTNO.01" VALUE=" ">
    <INPUT TYPE="radio" NAME="FORM_0508231444.DEFAULT.DEPTNO.01"
    VALUE="10">ACCOUNTING
    <INPUT TYPE="radio" NAME="FORM_0508231444.DEFAULT.DEPTNO.01"
    VALUE="20">RESEARCH
    <INPUT TYPE="radio" NAME="FORM_0508231444.DEFAULT.DEPTNO.01"
    VALUE="30">SALES
    <INPUT TYPE="radio" NAME="FORM_0508231444.DEFAULT.DEPTNO.01"
    VALUE="40">OPERATIONS
    You might run into problems if you change the form, because you are changing the way forms usually works. This is not
    a documented way of rendering radio buttons. Everytime you edit the form to add or remove columns you might have to
    redo the above steps.
    Thanks,
    Sharmila

  • Radio Buttons not working in Mozilla firefox

    Hi,
    I want one solution, i have done some enhancement in my application in which if we click on radio button(Yes) the corresponding fields(select list,shuttle fields will be shown) or else it will be hidden. My problem here is this works fine in IE but it does not work with Mozilla Firefox, can anybody please help me to sort my problem.
    Thanks,
    Dil
    Edited by: dil84 on Nov 18, 2009 2:29 AM

    Thanks for your interest. Here is a page where it does not work: http://foundation.zurb.com/docs/components/switch.html . Radio button is too small (only click on the top right corner can toggle the button).

  • Styling input radio buttons not working in linux firefox

    On linux we cannot use radio buttons switch from foundation zurb. Look at this issue: https://github.com/zurb/foundation/issues/1615#issuecomment-14593962.

    Thanks for your interest. Here is a page where it does not work: http://foundation.zurb.com/docs/components/switch.html . Radio button is too small (only click on the top right corner can toggle the button).

Maybe you are looking for