Instance name and Var for Input Text fields

I have several Input Text fields, as a form, linked to a PHP
script for which I require Var's for each field.
But I also need Instance names for each field, so I can fix
the tabIndex.
Yet, everytime I test my movie, the text fields have their
Paths (_level0.fName) written in them.
They are normally blank, and I've tried putting in some text
of my own, but the Var name is still displayed in the text fields.
Is there any way I can stop that from happening, and keep
both the Instance names and Var's in-place.
As far as I know, I need both the Instance name (for the
tabIndex) and the Var (for the PHP script) or is there a way that
the tabIndex and PHP script will work with either of the two?
Thanks
Chaz.

Can you use a different name for ‘instance name’
and ‘var’? That seems to solve the problem but I
don’t know if that helps you in your situation.
For an example;
Instance name: test_txt
Var: test

Similar Messages

  • Required Symbol for Input Text Fields

    Hi,
    I would like to have the symbol on the right side of my label. I am using 11.1.1.3
    I am wondering if this was ever implemented?
    ADF Required Symbol (*) in the right side
    I am using Firebug to help me style my pages, and I don't see where I can either move the (*) or completely remove it (but retain the required functionality).

    Hi,
    Have you taken a look at this thread, which would serve your purpose: Re: Changing the skinning for the Required indicator
    In the custom skin file, add this property to have the required indicator after the label.
    *.AFRequiredIconStyle{*
    float:right;
    Thanks,
    Navaneeth

  • Regarding Input text fields

    This is about fill in the blanks in flash 8 as2. In this i used input  text fields and three buttons.In first frame i used multiple input text  fields and a submit button. After filling all the blanks we click on  submit button then in the second frame we will show the result like if  the blank is correct it should change the color to green and if it is  wrong it should change to red.and in the frame i have check button when  we click on it will display all the answers. And when we click on  analyse button we have to display the answer which the user types and  the correct answers.
    And my problem is when we click on submit there is no difference in the blanks color all are in black only and i have assigned red to the wrong answer and green to the correct answer.
    and script on submit button is
    on (release) {
        gotoAndStop("Bl1");
        if ((_root.Bl.txt1 == "abc1") && (_root.Bl.txt2 == "abc2") && (_root.Bl.txt3 == "abc3") && (_root.Bl.txt4 == "abc4")) {
            _root.Bl.txt1.textColor = 0x006600;
            _root.Bl.txt2.textColor = 0x006600;
            _root.Bl.txt3.textColor = 0x006600;
            _root.Bl.txt4.textColor = 0x006600;
        } else {
            _root.Bl.txt1.textColor = 0xFF0000;
            _root.Bl.txt2.textColor = 0xFF0000;
            _root.Bl.txt3.textColor = 0xFF0000;
            _root.Bl.txt4.textColor = 0xFF0000;
    where "Bl" is the movie clip name and "txt1","txt2","txt3","txt4" are the var names for input text fields
    Please help........

    You are concatenating the conditions it will only work if all are true or  all are false
    on (release)
        gotoAndStop("Bl1");
        if (_root.Bl.txt1 == "abc1")
            _root.Bl.txt1.textColor = 0x006600;
        else
            _root.Bl.txt1.textColor = 0xFF0000;
        if (_root.Bl.txt2 == "abc2")
            _root.Bl.txt2.textColor = 0x006600;
        else
            _root.Bl.txt2.textColor = 0xFF0000;
        if (_root.Bl.txt3 == "abc3")
            _root.Bl.txt3.textColor = 0x006600;
        else
            _root.Bl.txt3.textColor = 0xFF0000;
        if (_root.Bl.txt4 == "abc4")
            _root.Bl.txt4.textColor = 0x006600;
        else
            _root.Bl.txt4.textColor = 0xFF0000;
    You can also run a for loop for optimizing the code further.
    www.darshanrane.com

  • How to set fixed size for inputfile text field

    Hi all,
    I am using inputfile component to test file uploading so I created a simple upload page. When I finished upload the file, the input text field will "shrink" its size and change the size to adjust the file name. Is there any way to set a fix size for input text field?
    Here is some part of the code:
    <af:form id="f1" usesUpload="true">
    <af:panelHeader text="File Uploader" id="ph1">
    <af:inputFile label="File to upload" id="if1" autoSubmit="true" valueChangeListener="#{fileBean.fileUpdate}"
    value="#{fileBean.file}" partialTriggers="if1"
    columns="50"/>
    </af:panelHeader>
    <af:commandButton text="Save" id="cb1"/>
    FileBean:
    public void fileUpdate(ValueChangeEvent valueChangeEvent) {
    RichInputFile inputFileComponent = (RichInputFile)valueChangeEvent.getComponent();
    UploadedFile newFile = (UploadedFile)valueChangeEvent.getNewValue();
    UploadedFile oldFile = (UploadedFile)valueChangeEvent.getOldValue();
    Thanks,
    Jerry

    you can set columns attribute in af:inputfile. Please see highlighted area i have inserted to you code
    <af:form id="f1" usesUpload="true">
    <af:panelHeader text="File Uploader" id="ph1" columns = "34" >
    <af:inputFile label="File to upload" id="if1" autoSubmit="true" valueChangeListener="#{fileBean.fileUpdate}"
    value="#{fileBean.file}" partialTriggers="if1"
    columns="50"/>
    </af:panelHeader>
    <af:commandButton text="Save" id="cb1"/>

  • How can I create a random number and letter in a text field...

    Hi All,
    I am using application express. I want to get a random number and letter for a text field but not sure how to do this. Say I have a licence form and I want to get the licence number automatically when user wants to create a new licence and it needs to be unique. The format I am looking for is - HQ2631 something like this.
    I am thinking I have to create a trigger but not sure how to go about this....
    advanced thanks,
    Tajuddin

    Something to play with:
    Your method can generate 26 * 26 * 10000 different licence_ids
    Generating one million ids takes 20 seconds but produces between 70000 and 80000 duplicates and is rapidly getting worse (if that is something over 7%, doubling the ids generated that grows to something under 30%)
    Just see if you can live with that.
    select sum(collisions) all_duplicates,count(*) distinct_duplicates,max(collisions) max_multiple
      from (select licence_id,count(*) - 1 collisions
              from (select DBMS_RANDOM.STRING('',2) || trunc(DBMS_RANDOM.VALUE(1000,9999)) licence_id
                      from dual
                     connect by level <= :to_generate
             group by licence_id
             having count(*) > 1
           )Regards
    Etbin

  • Changing the cursor position in an input text field and Removing leading numeric zeros

    Flash8 - AS2
    It's good to be back after all these years and thanks for the faithfull folks like kglad, Ned Murphy, Rothrock and all the others who give so much of themselves to make this forum a success!
    My Problem:
    I have an input text field that is named in the properties box as 'numberOfKids'.
    When the program is executed, and a delete or backspace is pressed the input textfield goes blank
    and any calculations that use 'numberOfKids' shows NaN.
    I have trapped the NaN and undefined so that a numeric 0 shows up instead of a blank.
    There are two problems:
    First problem:
      The cursor is to the left of the zero, so the first number inputted by the user is 10x larger than what they want.  0 becomes 10.
    Question:  How do I get the cursor to move to the right of the 0?
    Second Problem: 
      When I manually move the cursor to the right of the 0 and input a number, say 4, it shows up as 04.
    Question 2:  How do I delete the leading numeric zero in the input textfield?
    Thanks for the help.
    Here's the code I am using:
    calculateChildWeight = function () {
    if (isNaN(numberOfKids)) {
      numberOfKids = 0;
    if ((numberOfKids) == undefined) {
      numberOfKids = 0;
    if (numberOfKids>=0 && numberOfKids<=137) {
      numberOfKids = numberOfKids;
    } else {
      numberOfKids = 0;
    if (isNaN(adjustedChildWeight)) {
      adjustedChildWeight = 0;
    if ((adjustedChildWeight)=undefined) {
      adjustedChildWeight = 0;
    adjustedChildWeight = Number(numberOfKids*(-100));
    //numberOfKids.setSelection(numberOfKids.length, numberOfKids.length);
    //if (numberOfKids.length=2 && numberOfKids<10) {
      // remove the first character or leading zero
    //  numberOfKids = numberOfKids;

    Thanks Rothrock for being so  patient.
    I'm lost!
    I go back to a brand new flash file to try and implement the textfields as a stand alone test document.  I have lost the concept I think.
    I created on the stage of a blank .fla file  4 text fields, 2 input and 2 dynamic.  I gave them an instance name in the properties box.  I use this instance name.text to find the value of the field.  I use the parseInt to put that value into a numeric variable for calculation.  The results are put to the appropriate textfield.
    All seems to work except one of my input text fields.   I use the value of this field  to calculate:
    revisedValue = parseInt(numberOfKids.text);
    revisedValue = revisedValue*(-100);
    The problem now is that if the numberic '2' is inputted into numberOfKids, numberOfKids.text shows up as 200 and a trace shows up as '2NaN'.
    Flash is logical and consistant, I must conform to it but I'm in the dark.
    (( Concerning the forum:  If I click on helpful, which your posts have been in directing me, does that blank out the possibility of selecting the correct answer in the future???))

  • How to add comma and dollar sign that places automatically in input text field

    I have this ROI calculator which has several text input field
    on frame one with calculate and reset buttons. When a user enters
    numerical values in the text field, and jumping to the next field,
    I want the input text filed be updated with dollar sign and with
    comma.
    Next when they hit "ENTER" key or click "Calculate ROI"
    button, all the input text fields on frame 2 as a result of
    calculations be updated with dollar sign and comma. I also need
    that once the comma sign is assigned then it would not add any more
    even if user presses the button. Can someone help me in
    this?

    If you want to Set the Comma when you Switch to next Text
    Field
    Use onKillFocus / onSetFocus Functions.
    to restrict multiple comma, Before Adding comma use
    myText.text =
    myText.text.split(",").join("").split("$").join("");
    So this will give you the value without Comma and Dollar
    symbol, Now add the Comma and dollar.
    or you need to use a Flag for onChange Event.

  • What is the Table name & Field Name for Clearing text field in F-53 Transac

    Hi,
    I need prepare a functional specification for Clearing text field in Check Register.I am not able to find the Table name and Field Name for Clearing text field in F 53 transaction code.Kindly provide me the Table and filed name.so that i can proceed.Kindly help me.
    I will assign points.
    Thanks
    Sunitha

    Hi
    From the payment document you have to link to the clearing document (Number BSEG-AUGBL, same Fiscal year and Company Code) in the clearing document the text entered in the transaction can be found on item text (BSEG-TEXT).
    RF05A is a Structure name
    Ranga
    Edited by: Ranga Swamy on Dec 4, 2008 7:55 PM

  • Subscript & Superscript in dynamic and input text field in Flash

    Yes, <sub> & <sup> tags are not supported by
    Flash but you can
    use Subscript & Superscript in dynamic and input text
    field in Flash:
    Download & install Subscript & Superscript fonts
    from
    http://www.subscriptfont.com
    or
    http://www.superscriptfont.com
    You will need to restart Flash software after installed
    fonts.
    Create a dynamic text field with Arial font embeded. Set the
    HTML property to true.
    Create a dynamic text field with Subscript font embeded.
    Create a dynamic text field with Superscript font embeded.
    Use HTML tag to set text to subscript or superscript like
    below:
    Some text<font face="Superscript">©</font>
    If you are using ActionScript to test the htmlText, use
    script like below:
    my_txt.htmlText = "Some text<font
    face='Superscript'>TM</font>";
    They are better than CG since it goes lower than the baseline
    and it's real subscript..

    Hi Nirnalatha,
    I have newly joined this forum and while going through the
    posts I came across your post which I thought I could help out. But
    I think I am too late for the reply.
    I am also into Flashlite development couple of months from
    now. Coming to your questions:
    1. Textbox problem: I am surprised to know that E70 mobiles
    (Device central list has E70-1 only) does not show input text box
    when cursor is in input box. Anyways its a good thing that you dont
    get an additonal input box. Like all J2ME applications you will be
    able to type the text inline. Infact we had reverse problem where I
    was told to create inline edit input box instead of flashlite input
    box. I think this is the mobile setting. Check the device features
    in the Adobe Device Central under Flash - Standalone player - Text
    and Fonts features. It will be mentioned whether inline text is
    allowed or not.
    2. Soft keys issues: You need to use
    fscommand2("SetSoftKeys", "Previous", "Next");
    and use a key listener in order to override the Mobile
    Softkey commands. Check out the flashlite help which clearly
    explains this.
    Hope I have given youa way to solve ur problem.

  • I have a form that has multiple fields but has 5 sections. I have used mail merge to insert information but I can't get Excel to recognize that I need different names and addresses for each section. Please help.

    I have a form that has multiple fields but has 5 sections. I have used mail merge to insert information but I can't get Excel to recognize that I need different names and addresses for each section. Please help.

    Thanks for your response. I do believe I have the information needed for each form on a separate line in Excel. There is a first name, middle name, last name, city, and zip column. And field is entered on a different line for all the information. I'm really stuck.

  • I am creating a request for proposal form and I need to add a commission structure field.  I created a table using the ranking field and now I need to delete the "dots/buttons" and turn them into text fields, is this possible?

      I created a table using the ranking field and now I need to delete the "dots/buttons" and turn them into text fields, is this possible?

    It sounds like what you are trying to do is edit the choices in a likert field to something other than the default radio button. This is not something that you can do in Formscentral at this time.
    Andrew

  • Error checking input text fields.

    Hi
    Just wondering where I find a list of what can be error checked in input text fields?
    I'm looking for things like...
    - checking that letters and not numbers are entered
    - checking that an entered number is in a certain range
    etc...
    Thanks guys
    Shaun

    To restrict input for a text field, use the following AS3 codes:
    myInput.restrict = "A-Z, a-z, ., ,'"; //myInput is the instance name of your text area
    To check the range of the numbers, use the following code:
    myInput.restrict = "0-9";
    myInput.maxChars = 3;
    myBtn.addEventListener(MouseEvent.CLICK, chk);
    function chk(e:MouseEvent):void
        var myString:String = myInput.text;
        var i:Number = Number(myString); //Converting the string to a number variable
        var max:Number = 100; //Maximum range
        var min:Number = 30; //Minimum range
        if (i < max && i > min) //Condition to indicate the range
            trace("Within range");
        else
            trace("Out of range");
    Hope this helps.

  • How Can i send the data entered in Input text fields to e-mail?

    Iam Jennifer, Iam having a doubt in Flash, I hope that you
    are going to solve my problem, Iam taking 3 Static text fields as
    Name, Age and Country and besides each and every static text fields
    i have taken 3 input text fields with different instance names,
    when i enter my Name, Age and Country details in the input text
    fields and after entering those details if user clicks the submit
    button the data should be send to some mail address, is it possible
    Im not so good at action script, but i hope that any one can
    help me...
    Iam attaching the action script code also, please find the
    attachment below, the actions are given to button.
    Attach Code
    Btn.onPress = function ()
    mail_lv = new LoadVars();
    mail_lv.dummy1 = "";
    mail_lv.subject = "Details";
    mail_lv.message = "hi";
    mail_lv.username = "name_txt".text;
    mail_lv.age = "age_txt".text;
    mail_lv.country = "country_txt".text;
    mail_lv.onLoad = function ()
    trace("Sent successfully...");
    trace("mail_lv.subject = " + mail_lv.subject);
    trace("mail_lv.message = " + mail_lv.message);
    mail_lv.send("mailto:[email protected]", "_blank");

    The names of your variables, "name_txt", for instance, should
    NOT have quotes around them. Use:
    mail_lv.username = name_txt.text;
    mail_lv.age = age_txt.text;
    mail_lv.country = country_txt.text;

  • How to allow input text field to accept more than one "specific" answer.

    Hi,
    I am working for something and trying to create a type-box-based quiz for one of my classes, where an input text field can change it's border color if 2 or more words from an accepted word list is inputed.
    For example, Say a list has possible answers: R,G, B, Y for the question "Name 2 colors".
    I want to create an input text box where the border of the box will change color if any 2 letters (in the above list) are entered into it.
    I've tried setting up a variable NumberSuccesses and setting it so that the number increases by 1 for each letter entered e.g.
    if (Ex.text == "R");
    NumSuc = NumSuc +1; // the var NumSuc has already been defined earlier in the code
    If (Ex.text ''G")
    NumSuc = NumSuc + 1
    if (NumSuc == 2)
    Ex.borderColor = 0x0000FF
    but that didn't work.. and I tried doing it with another function which I use for multiple input boxes like if there were boxes A, B, C. I could set up a general function where if the correct answers were entered into A, B, an C respectively, only then will say, a checkmark show up using a
    EnableCheckmark (); type function. Not sure how to do it if it's the same text input box though. Also just tried adding it into the same function re.
    If (Ex.text == "R" + "G")
    Ex.borderColor = 0x0000FF
    .. Does anyone know what else I can do?

    The solution of Nishu with Evaluation Logic:
    //These Are the Possible Answers
    var solutions:Array = new Array("A","B","C","D");
    function testInput(_inputText:String):Boolean
        //the delimiter could also be a comma, here it is a space
        var inputStringArray:Array = _inputText.split(" ");
        var counter:Number = 0;
        for (var i:int=0; i<inputStringArray.length; i++)
            for (var j:int=0; j<solutions.length; j++)
                if (inputStringArray[i]== solutions[j])
                    counter++;
        if (counter >=2)
            trace("true");
            return true;
        else
            trace("false");
            return false;
    //Textfield with name input_txt on stage
    input_txt.addEventListener(TextEvent.TEXT_INPUT, answerTxtInp);
    // The function that will be called by the event listener
    function answerTxtInp(txtEvent:TextEvent):void
         // depending on the possible answers of characters, change the border  color
         if(testInput(input_txt.text)){
             input_txt.borderColor = 0xFF0000;
         else{
             input_txt.borderColor = 0x000000;

  • How to insert a date picker input text field in a JSF Jsp page

    Hi,
    I have to develop an application using generic facets, unfortunately I am not supposed to use ADF Faces components given by Oracle.
    Now my requirement is, on JSP page an input text field which holds a DATE value is required, it should also have a Date Picker Calendar adjacent to it.
    Could you pls shed some light on this issue and help me out.
    Thanks
    ~Siva(ji)

    <HTML>
    <script language="JavaScript" type="text/javascript">
    <!--
    var pUpWidthc = 300; //Change the pUpWidthc to your requirements.
    var scrAvailc = 400;     //Change to your available screen width. You see in
    //this eBooks' middle frame, the frame width is
                                                                //equal to 410 . So whether your using frames or
                                                                //or a full 800 pixel screen, you must calculate
                                                                //your available screen width.
    var PopUpC = document.getElementById("pUpc");
    document.write('<div id="pUpc" style="visibility:hidden;z-index:4;width:'+pUpWidthc+';position:absolute;"></div>');
    function cstmPup(objC,c){
    popUpC = document.getElementById("pUpc");
    popUpC.innerHTML = c.innerHTML
    popUpC.style.left = getPos(objC,"Left");
    var scrNeedc = getPos(objC,"Left") + pUpWidthc;
    if (scrNeedc > scrAvailc){
    //The number 10 below is an extra offset x value applied when the
    //definitional popup box positions beyond your screen width. You
    //can change this number to fine tune your "beyond screenwidth" positioning.
    var scrOffsetC = getPos(objC,"Left") + pUpWidthc - (scrAvailc);
    popUpC.style.left = getPos(objC,"Left") - (scrOffsetC - 0);
    popUpC.style.top = getPos(objC,"Top") + objC.offsetHeight;
    popUpC.style.visibility = 'visible';
    fill();
    function fill()
         var noOfRows=7,noOfCols=7,i=0,j=0,day=1,x;
    var d1=FirstDayOfWeek(7,2008);
    //40     
         for(i=1;i<noOfRows;i++)
              x=document.getElementById('myTable').insertRow(i);
              for(j=0;j<noOfCols;j++)
                   var y=x.insertCell(j);
                   if( ( i==1 && j<d1))
                   y.innerHTML="";
                   else if(day<=DaysInMonth(7,2008)){
                   y.innerHTML=day;
                   day++;
    //document.write(FirstDayOfWeek(7,2008));
    function FirstDayOfWeek(m,y)
    var i;
    var dow = 6;
    //document.write("Hello");
    for (i=1583; i<y; i++)
    dow += (LeapYear(i)) ? 2 : 1;
    for (i=1; i<m; i++)
    dow += DaysInMonth(i,y);
    return dow % 7;
    function DaysInMonth(m,y)
    // m is the month number (1,2,3,...12), y is the year number (four digits)
    switch (m)
    case 1:
    case 3:
    case 5:
    case 7:
    case 8:
    case 10:
    case 12: return 31;
    case 2: if (LeapYear(y))
    return 29;
    else
    return 28;
    default: return 30;
    function LeapYear(y)
    return (y % 4==0) && ((y % 100!=0) || (y % 400==0));
    function getPos(objC,sPos){
    var iPos = 0;
    while (objC != null) {
    iPos += objC["offset" + sPos];
    objC = objC.offsetParent;}
    return iPos;
    function hPopUpc(){
    popUpC = document.getElementById("pUpc");
    popUpC.style.visibility = 'hidden';
    //-->
    </script>
    <BODY
    <button id="c1" onclick="cstmPup(c1,pUpCstm)">Custom PopUp</button>
    <'div' id="pUpCstm" style="display:none;">
    <'div' id="myid" align="left" style=" width:100%; height:100%; background:#cccccb; border:1px solid black; border-top:1px solid white; border-left:1px solid white; padding:10px; font:normal 10pt tahoma; padding-left:18px "> <b>Rich Message Boxes</b>
    <hr size="1" style="border:1px solid black;">
         <div style="width:220px; font-family:tahoma; font-size:80%; line-height:1.5em"><br>
              <table border ="1" id="myTable">
                   <TR>
                        <TD> SUN </TD>
                        <TD> MON </TD>
                        <TD> TUE </TD>
                        <TD> WED </TD>
                        <TD> THU </TD>
                        <TD> FRI </TD>
                        <TD> SAT </TD>
                   </TR>
              </table>
         <br><br>
         </div>
         <br>
         <div>
    <button tabindex="-1" onclick="hPopUpc()" style="border:1px solid black; border-left:1px solid white; border-top:1px solid white; background:#cccccc ">Close Message</button>
    </div>
    <?BODY
    </HTML>
    Message was edited by:
    mchepuri
    Message was edited by:
    mchepuri
    Message was edited by:
    mchepuri

Maybe you are looking for