Filtering responses in a text field

Once again I need some guidance with my form please.
I have a form (audit report) with numerous radio buttons with 4 options each, NA, CN, PC and C.
Each represents a different answer to the question associated with the radio button.
This answer this then passes through to a text field next to the radio buttons.
In turn at the beginning of my form I have an executive brief giving a run down on findings from the different questions asked. These are a reflection of the text fields associated with the radio buttons.
These are represented as 2 text fields namely, Non-compliant (NC), partial – compliant (PC).
What I am getting now is a whole lot of “null” answers that change when one of the radio buttons are selected and reflects that answer associated with the selection, both NC and PC text fields are the same and I then have to edit it and delete the PC from the NC section and the same for the PC section.
What I would like to happen is that all the “nulls” are hidden and only when the answer representing the NC or PC buttons are selected, that those answer get represented through to the Non-compliant (NC), partial- compliant (PC) text fields in my executive brief. IE some sort of filter for each text filed that only displays the NC or PC answers.
Any help or guidance will be appreciated.

This method works for a Text Field but can you text wrap and expand to fit the height of a cell that is a Drop-down List. The Expand to fit check box on the Layout palette is greyed out for all my Drop-down boxes. I have also tried using the following JavaScript:
var newHeight = xfa.layout.h(DropDownList, "in");
Textbox.h = newHeight + "in";
but it doesn't work. Any suggestions?

Similar Messages

  • Filtering responses in different text fields from different radio buttons.

    Once again I need some guidance with my form please.
    I have a form (audit report) with numerous radio buttons with 4 options each, NA, CN, PC and C.
    Each represents a different answer to the question associated with the radio button.
    This answer this then passes through to a text field next to the radio buttons.
    In turn at the beginning of my form I have an executive brief giving a run down on findings from the different questions asked. These are a reflection of the text fields associated with the radio buttons.
    These are represented as 2 text fields namely, Non-compliant (NC), partial – compliant (PC).
    What I am getting now is a whole lot of “null” answers that change when one of the radio buttons are selected and reflects that answer associated with the selection, both NC and PC text fields are the same and I then have to edit it and delete the PC from the NC section and the same for the PC section.
    What I would like to happen is that all the “nulls” are hidden and only when the answer representing the NC or PC buttons are selected, that those answer get represented through to the Non-compliant (NC), partial- compliant (PC) text fields in my executive brief. IE some sort of filter for each text filed that only displays the NC or PC answers.
    Any help or guidance will be appreciated.

    I will explain this through an example.
    In my application I have created two Select Lists.
    The first select list is a select list with a submit
    P3_X allows selection of 1,2,3
    The page branch sets the value of P3_X with &P3_X. so that way the second select list knows what value it will be using.
    The second select list P3_Y is a dynamic query that says
    Select SCOL d, SCOL r from TEST1 where FCOL=:P3_X
    If you were to have a third select list you would make the second Select List also a submit and have the page branch also set P3_Y with &P3_Y.
    The third Select list would say select from where item=:P3_Y
    Does this answer your question?

  • How do I make content in a text field continue onto a new page?

    I am creating a form and one of the pages contains a text field for an essay. I'd like the responses in this text field to carry onto new pages if they reach the end of the first page. How do I make new pages appear with only the continued text field? Thanks!

    All right...
    public class guiClient extends JFrame implements ActionListener {
    static String userString;
    static String currentFont;
    String fontchoice;
    String fontlist;
    static JTextField userName = new JTextField();
    public guiClient() {
         super("My Client");
    public guiClient() {
         super("My Client");
    // Create a ComboBox
    GraphicsEnvironment gEnv = GraphicsEnvironment.getLocalGraphicsEnvironment();
    String envfonts[] = gEnv.getAvailableFontFamilyNames();
    Vector vector = new Vector();
    for ( int i = 1; i < envfonts.length; i++ ) {
    vector.addElement(envfonts);
    JComboBox fontlist = new JComboBox (envfonts);
         fontlist.setSelectedIndex(0);
         fontlist.setEditable(true);
         fontlist.addActionListener(this);
         fontchoice = envfonts[0];     
    //Create a regular text field.
         JTextField textField = new JTextField(10);
         textField.setActionCommand(textFieldString);
         textField.addActionListener(this);
    public void actionPerformed(ActionEvent e) {
    //if the action is from the textfield (e.g. user hits enter)
         if (e.getActionCommand().equals(textFieldString)) {
              JTextField fromUser = (JTextField)e.getSource();
         if (fromUser != null){
    //place user text in editor pane
    //send message to server
                   if (userName.getText() != null) {
                        userString = userName.getText().trim();
                   out.println(userString + ": " + fromUser.getText());
              fromUser.setText("");
         else if (e.getActionCommand().equals(fontlist)){
         JComboBox cb = (JComboBox)e.getSource();
    String newSelection = (String)cb.getSelectedItem();
    currentFont = newSelection;
         userString = currentFont;
    return;

  • Mavericks slow response for text fields

    Has anyone noticed that any text field is really really slow in response after upgrading to Mavericks?  I have a mid 2011 mac mini with 8 GB ram, 2.5 TB external disk drives.
    It is really driving me crazy having to wait to enter text in.  Most noticeble in Safari and iWorks.
    thanks
    Paul

    Hello Paul,
    Thank you for the details of the issue you are experiencing with text fields on your Mac after upgrading to Mavericks.  I recommend reviewing the steps in the following article for the issue you described (the title refers to the Mac in general, but the steps apply to the issue you described as wel):
    OS X Mavericks: If your Mac runs slowly
    http://support.apple.com/kb/PH13895
    Thank you for using Apple Support Communities.
    Best,
    Sheila M.

  • Removing pre filled responses in text field

    New to livecycle and I am creating a new form and have been simultaneously testing it. When i am entering information in a text field all of the information I have entering pre populates and I'm worried the end user will see this. I cant seem to remove this and ots vey distracting. How do I clear this?

    Hi,
    Can you describe further what do you mean by prepopulates when you enter info? Do you mean an auto-completion like pre-population? Or does the field get prepopulated BEFORE you key in any values in the text field? Or do you mean the text field ignores what is being typed in, and pre-populates with a default value?
    Regards,
    Ber

  • Expanding text fields for printing

    I have created my first form and saved it as a pdf.  in general it looks good but even though the text fields are expandable and grow I can't see all of the text once the form is printed.  What can I do? Is there a setting somewhere I am not aware of? 
    Help!!

    Hi;
    In the PDF you download from the "Distribute" tab that users fill out the text areas don't "expand" but they scroll to accomodate the text.    In PDF in general printing will not print the entire multi-line text fields, however, we made an enhancement in the "Response PDF" that you can downoad.  If you go to the "View Responses" tab and "Download response as PDF" you will get a PDF of the form with the users responses, in this PDF the multi-line text boxes are all expanded to fit the text so that when you go to print this PDF it will print the entire response text.
    Thanks,
    Josh

  • Expanding text fields

    I have inserted text fields, but they only allow a one line response. I was told to go to text fields, then format, then word wrap and then to put in total characters, but can't find any of those options. I was also told not to upload a pdf file to forms, but when i tried my document in word doc format it wouldn't let me select it to upload. I can make the fields in the pdf version, but none of these options appear. How do i set up text fields that allow for long answers, or alternatively, is there a way to make a pdf writable to someone can fill out a questionnaire?

    If you asking about a text field that you create in Acrobat, you need to bring up the text field properties dialog and select the Options tab, and select the Multiline option. You can specify a character limit, but you don't have to. If you select the "Scroll long text option, the user will be able to input more text than can be displayed in the field at one time.

  • Is there a way to link text fields, so when you reach the end of one line it moves to the next?

    I often use Acrobat Pro to create forms, whether it be from an existing document or from scratch, and this has always irritated me.  I know you can create a text field and select the Multi-line option; however, this is not what I am looking to do.  I have a form that has a Yes or No Radio Button, then below it says "If yes, please explain:" followed by 3 lines to respond.  When I run it through the Form Creator, it places three text fields on the response lines - as it should.  The first line is shorter because of the text, which is why I cannot use the Multi-line option.  So is there a way to link these three text fields, so that when I reach the end of the first line it stops and automatically moves to the next? 
    Here is a picture of what I am looking at:

    These types of lines are a left-over from printed forms. There's no reason
    to keep using them if your form is digital.
    The best approach is to combine the fields to a single multiline field, and
    get rid of the first line. Trying to link text fields together is very
    tricky. I haven't yet to see it done properly.

  • How do I disable printing of my PDF if a text field isn't filled in?

    Hello all I'm currently trying to find a way to make the print button of my pdf not work if say a necessary textfield wasn't filled in?
    I take it that the standard validation scripts won't work?
    The very helpful fellow from a thread seemed pretty sure it couldn't be done.
    In short in order the print button to work the form must have certain textfields populated with content if the combo box next to them has a certain value selected.
    Say for example
    A text field by the name AIMCode_R1 has no content in it but it's related combobox "Loc_R1" has value 2 currently selected then before printing the pdf must validate that textfield "AIMCode_R1" has content and visversa if "AIMCode_R1" has content then "Loc_R1" must have  value 2,3 or 4 selected before the pdf will allow the user to print.

    In that case all the responses above are incorrect. You can write whatever conditions you want before calling the print command.
    Of course, the user will still be able to print the file using the built-in Print command, in which case you can use some of the ideas mentioned above, but the file will still print. One approach I like to use is to reset the form if some required fields are not filled-in, so the printed copy is blank, and then re-fill it afterwards, so the user can complete it.

  • Is there a way to link text fields in an interactive form in ID CS6?

    I'm recreating a form where they had several text fields on top of each other. If the form were not interactive, that would be so the user could use it to fill out longer, more detailed responses to the questions.
    But since it's supposed to be interactive, I question the need for this, unless I could link them somehow, so that a user's long answer would flow from one field to the next as needed.
    Is there a way to do that? Or would it work better to combine the 3 text fields into one big text field?
    If the latter, is there a way to change a text field back into a text or picture box? I can't seem to find that option.

    You cannot link PDF fields to each other.
    Make a text field Multiline and Scrollable to allow for extra input (in Acrobat, but not in InDesign, you can also set a limit on the number of characters).
    As I said elsewhere, choose Object > Interactive > Convert to Object to change a field to a regular object.

  • How to create a group/list of check box variables for display in text field, in appended format

    I need to identify a series of single-response checkbox variables and display the ones selected (as a group) in a text field in an appended (comma, space) format. Last week, you provided a great little script for a similar need using List Box (multiple response) variables. This time I need to know how to formally identify the checkbox variables and, I presume, use a similar script to display the results in a comma, space format.
    You've been of great help.
    Thanks

    Here's the script adapted to this situation. It assumes there are ten check boxes named cb1, cb1, cb2, ...cb10.
    // Custom Calculate script for text field
    (function () {
        // Initialize the string
        var v, s = "";
        // Loop through the check boxes to build up a string
        for (var i = 1; i < 11; i++) {
            // Get the value of the current check box
            v = getField("cb" + i).value;
            if (v !== "Off") {
                if (s) s += ", ";  // Add a comma and a space if needed
                s += v;  // Add the selected value
        // Set this field value to the string
        event.value = s;
    You'll have to change the field name and starting/ending numbers to match your form.

  • How can I merge 3 or more individual text fields into an editable summary text field?

    I am stuck and do not know where to begin. I am self taught in using Adobe LiveCycle and have found many answers here in the forums and via trial and error.
    I cannot find or create the correct java script or form calc to feed multiple text fields into one text field.  My supervisor is asking me to do this for two sections of a form I created using Adobe LiveCycle Designer ES 8.2.
    1)       Merge all 3 user entered text fields to an user editable summary text field at the end of the form.
    2)       Merge all 24 user entered text fields to an user editable summary text field at the end of the form.
    Since they are all individual text fields in response to various questions, I cannot use the global binding function. I do not want the summary text field to override the individual text fields.
    Here is the java scripting I placed on Show: calculate* Language: javascript Run: at client
    1) PDStrengthWeaknessComments.rawValue + "_" + OCStrengthWeaknessComments.rawValue + "_" + CEBAStrengthWeaknessComments.rawValue;
    Needless to say, these instructions are not working on my form. Would someone with a lot of experience or an IT degree kindly help me?

    I just tried adding the front end as you suggested and confirmed that the Object > Value is set to "calculated - user can override" for the summary text field.
    OverallAnalysisAppFeedback.rawValue = PDStrengthWeaknessComments.rawValue + "_" + OCStrengthWeaknessComments.rawValue + "_"  + CEBAStrengthWeaknessComments.rawValue;
    I was still unsuccessful.
    I opened the debugger and received the following information. I do not understand what AdobeLiveCycle is asking me to define.
    PDStrengthWeaknessComments is not defined
    1:XFA:GARP2011NewRecompeteSRW[0]:Page20-OverallAnalysisAppFeedback[0]:AllOverallAnalysis[0 ]:calculate
    PDStrengthWeaknessComments is not defined
    1:XFA:GARP2011NewRecompeteSRW[0]:Page20-OverallAnalysisAppFeedback[0]:AllOverallAnalysis[0 ]:calculate
    Budget1Comments is not defined
    1:XFA:GARP2011NewRecompeteSRW[0]:Page21-OverallAnalysisAppFeedback-Budget[0]:AlBudgetQs[0] :calculate
    Budget1Comments is not defined
    1:XFA:GARP2011NewRecompeteSRW[0]:Page21-OverallAnalysisAppFeedback-Budget[0]:AlBudgetQs[0] :calculate
    Do you have any additional tips or suggestions?

  • How to "enter" a text field on a website that doesn't have an enter button?

    Hi All,
    I wanted to know I can press "enter" in a text field on a website that doesn't have an enter button.
    I have used the following to help me code (i.e. login, enter values into fields).
    https://decibel.ni.com/content/docs/DOC-25396
    The above link helps but there isn't a submit on the website I am trying to access or in the code.
    What has worked for me, but isn't the best solution, is to simulate a mouse click on the desired field, after text entry, then simulate the keyboard "pressing enter".  The problem with this is the mouse click depends on the position of the labview front panel. The code runs in the background and is also a subvi.
    thanks in advance,
    Jose

    Just a question/idea - but can you not just POST the data to the web server directly? Take a look at the HTML of the page and see if you can find the <form action="<THE URL TO POST TO>"> and then find all of the names of the form fields and send them along with the values via the HTTP Client POST VI.
    It sounded to me like you are trying to push data into a web server so it shouldn't be necessary to render the page and fill out the fields on the rendered page if you can bypass all that and just submit the data and get the response.
    If the form data is sent asynchronously (using AJAX), then you might need to delve a little into the site's javascript to find the POST URL and field names.
    Certified LabVIEW Architect, Certified TestStand Developer
    NI Days (and A&DF): 2010, 2011, 2013, 2014
    NI Week: 2012, 2014
    Knowledgeable in all things Giant Tetris and WebSockets

  • How to put the return data from webservice to a text field

    Dear All ,
    I created a function module for calculating the square of the input given  and created a webservice using the create webservice option available for function modules.
    function module:-
    FUNCTION ZJK_FLEX_TEST.
    *"*"Local Interface:
    *"  IMPORTING
    *"     VALUE(DATA) TYPE  ZSLNO OPTIONAL
    *"  EXPORTING
    *"     VALUE(DATA1) TYPE  ZSLNO
    *"  TABLES
    *"      IT_DAT STRUCTURE  ZWBSER OPTIONAL
    data: wa_dat LIKE LINE OF it_dat.
    data1 = DATA * data.
    wa_dat-results =  data * data .
    APPEND wa_dat TO it_dat.
    ENDFUNCTION.
    and i passed the it_dat in table fields and data1 in the export paramenters of FM.
    but in the flex i am not getting the table values. but i am able to get the data1 value. but the problem is . I am getting it as an XML format.
    <s0:ZJK_FLEX_TEST.Response xmlns:s0="urn:sap-com:document:sap:rfc:functions" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
      <DATA1>0000025</DATA1>
    </s0:ZJK_FLEX_TEST.Response>
    so how to set the value of data1 to my text field in the flex .

    Hi Jay,
    resultFormat="e4x" will give you resultset in XMLListCollection otherwise resultset will be an ArrayCollection.
    For your example try with this statement after web service result:
    txtInput.text = ws.ZJK_FLEX_TEST.lastResult.DATA1.toString();
    where ws is id for web srvc and txtinput is a simple textInput control UI.
    I hope this will solve your query.
    Regards,
    Vivek

  • Problem with Refreshing the data bound text fields

    Folks,
    First of all, this a GREAT product and I am moving my apps from Eclipse to Studio Creator. I am very impessed with it so far.
    I am gone through most tutorials, but can't help resolve the problem that I am having. I have a page, that lists all the users in a table. When you click on any user, it opens up another page that lists the detail of the specific user you have clicked on. This a typical use in most web applications, right?
    In the user detail page, I open it in "Read" only mode, by setting the "setReadOnly" to true for all text field components. Then users can edit it by clicking "Edit" button. Edit button just changes the "setReadOnly" to false, to allow editing. After editing, they can hit the "Save" button to save the changes. In the save button, I call this code:
    public void prerender() {
            try {
                userID=getSessionBean1().getUserID();
                getSessionBean1().getWeb_userRowSetUserDetail().setObject(1,userID);
                getWeb_userDataProviderUserDetail().refresh();
                info("prerender: Refresh called");
            } catch (Exception ex) {
                error("Error in userForm.prerender():"+ex.getMessage()+ex.getStackTrace());
                log("Error in userForm.prerender():", ex);
            setReadWrite();
    public String btnSave_action() {
            try {
                getWeb_userDataProviderUserDetail().commitChanges();
                getWeb_userDataProviderUserDetail().refresh();
                info("Data Provider Refreshed in SAVE");
                _readOnly=true;
                form1.discardSubmittedValues("saveVForm");
                info("User Updated New:"+userID);
            } catch (Exception ex) {
                log("Error Description", ex);
            return null;
        public String btnEdit_action() {
            try {
                _readOnly=false;
                //info("User ID Edt="+getSessionBean1().getUserID());
            } catch (Exception ex) {
                error("Error in userForm.btnEdit_action:"+ex.getMessage()+ex.getStackTrace());
                log("Error in userForm.btnEdit_action():", ex);
            return null;
        private void setReadWrite(){
            // Set read-only to true or false for all text fiels
            this.btnEdit.setVisible(_readOnly);
            this.btnSave.setVisible(!_readOnly);
            this.user_id.setReadOnly(_readOnly);
            this.user_email_client.setReadOnly(_readOnly);
            this.user_email_office.setReadOnly(_readOnly);
            this.user_fname.setReadOnly(_readOnly);
            this.user_lname.setReadOnly(_readOnly);
            this.user_id.setReadOnly(_readOnly);
            this.user_password.setReadOnly(_readOnly);
            this.user_password_conf.setReadOnly(_readOnly);
            this.user_phone_cell.setReadOnly(_readOnly);
            this.user_phone_cell_aac.setReadOnly(_readOnly);
            this.user_phone_client.setReadOnly(_readOnly);
            this.user_phone_home.setReadOnly(_readOnly);
            this.user_phone_office.setReadOnly(_readOnly);
        }When the save button is clicked, the database is updated (as I can verify by looking directly into the database), but the data-bound text fields do not display the new value. YES, I am calling refresh() on data provider? I tried to call refresh in both "preRender()" and "Save" button action event, but that did not help either.
    Please note that the save button also changes the "setReadOnly" back to TRUE for all text fields. That means, users view the page in Read-Only mode after saving. (They have to click on "Edit" button again to edit it). I discovered that if I do not set the text field components in "ReadOnly" mode, then they display the updated value of the fields. But if I change setReadOnly to TRUE, then they display the old values (before the save).
    Any idea what I am doing wrong here?
    Thanks

    Here is my experience with it. I have three text
    boxes to be filled out. They are part of a virtual
    form with an add button as the submit. You can fill
    out the 3 and add them and a node is added to a tree
    component. When you click on a node in the tree
    component (the submit to another virtual form that
    the 3 buttons participate in) the text fields should
    be loaded with the values that they where added with.Hard to tell from this explanation, but if the text fields do not participate in a virtual form, then they are not going to get updated when an action in the virtual form happens. Not sure this is your problem. Like I say, hard to tell from this explanation.
    They will not display the values though...having
    nothing to do with read only. If I disable them
    before hand...they display the updated values. If I
    set their value at the top or bottom of prerender,
    they display the change...if I set the value in an if
    conditional that is hit (I have checked many times)
    in prerender, they will not display the values. If I
    set them in the tree handler anywhere, they will not
    display the values. This is very frustrating and is
    wasting tons of my time...I simply want to load the
    text fields based on the tree node that was
    clicked...I have messed with this for hours and it
    certainly does not work.Well, setting them in the tree handler won't work because the tree handler gets called in the page instance that handles the submit and not the page instance that renders the response.
    Posting your prerender code might help. Also, your action handler.
    >
    >
    - Mark

Maybe you are looking for

  • Data form not saving enter data after hit of submit

    Hi, Entered data on Data from not saving after hitting the submit button in smartview. A rules is attached to the same data from and its running on save, after retrieve it's not display enter data. it's urgent, please help. Regards

  • Multiple cells that reference one value

    Hey guys - Still new to formulas - any help would be appreciated. I have a cell on table 1, with the cell value duplicated in other tables / sheets in my document. For example, Cell A1 in tables 2 & 3 is referencing back to table 1, using the formula

  • Flash 6 vs. Flash 7/8 AS1 difference?

    Is this behavior documented? It has left me utterly baffled. var a = "string"; if(!a)trace("!a:"+a); Working in the Flash 8 IDE, I get these results: Publish settings - Flash 6 AS1 Output - "!a:string" Publish settings - Flash 7 or 8 AS1 Output - ""

  • Crystal Crashes when Creating a Connection to MySQL 5.0 through ODBC

    Post Author: [email protected] CA Forum: Data Connectivity and SQL I am using a MS Server to run BO Server.  I open Crystal Reports, create a new connection to my MySQL Database through ODBC (that is set up as a System DSN).  After i put in the log i

  • Media Tracker not working in array element initialization...

    Hi, I'm new to Java... and I'm also in a hurry. Having trouble here. Ever since I turned TerrainPalette into an array the media tracker hasn't been able to add the image. I'm sure it's something simple that I'm doing wrong since I'm so new. Here's my