Display text fields from check box?

Hi
Is there a way to display hidden text fields in a form
whenever the check
box is clicked?
For example I have an option which asks how may we be of
service to you?
One option is 'estimates on conveyancing' , once this is
clicked I need to
display further text fields (estate agent, name of property,
price of
property etc)
Thanks for any help

Nope.
First, I had trouble figuring how to apply the Form Calc to the Button, as opposed to the Button List.
I actually had to edit the first line in the Script Editor, which seems pretty lame.
That is to say, I just don't see how to get to the radio button, not the Object named RadioButtonList
BUT, I can't UNCHECK the field once it's been checked. That is, if I click "on" the Radio Button, it won't revert to unchecked if I try to click it "off".
In other words, if the person unchecks the Radio button due to some error, I need it to click off and the TextFiled to go back to being hidden.
Like I said, this can't be that hard, or maybe I'm just missing what you're trying to explain. Any other ideas?
Steve

Similar Messages

  • Saved text fields and check-boxes empty when 3D window activates

    I've created Text Fields and Check-boxes in a pdf template, using LiveCycle Designer.
    I create the 3D work in Reviewer, and use the pdf template during Export to 3D pdf.
    Using 'Extend Features in Adobe Reader' the user can fill in the text fields, and click the check-boxes then save them with the pdf  - just using Reader.
    So far this is great!
    The problem comes when the pdf is opened again and the 3D window (A3DR_3DFrame) activated.
    All the completed fields empty!
    This is not great at all!
    I've did some tests and found that the filelds only clear if I include the Configs selection list box with the special name 'A3DR_Configs' in the template pdf. (A3DR_Configs lists the Configs stored in the 3D Reviewer file and the user can select the config from that list).
    This is unfortunate, as the A3DR_Configs window is useful since it indicates to the user which 3D config is currently being viewed (ie the name of the current config stays highlighted).
    Is this a bug that can be fixed or is there a workaround?
    thanks,
    Ian

    Would you mind to post your commenton the the approriated Adobe forum page ?
    This one is dedicated to Acrobat 3D
    The correct forum page for Designer is:
    http://forums.adobe.com/community/livecycle/livecycle_es/livecycle_designer_es
    Thanks in advance
    William

  • Quick qn on displaying text fields from region.

    My doubt is that i have a page where
    there are 2 Regions..top and bottom Regions
    we can enter a person's details on the bottom region and hit submit..then that person get stored in the database and visible on the top region
    i have a situation where i need to grab these people from the top region and display in side email message
    my text field in the bottom region is not constant..so i am not able to capture them..
    Its like this:
    TOP REGION:
    tommy lee Male address 1
    kanan jones Male address 1
    babu lee Male address 1
    Note: Sometimes there may be only one person..sometimes more than 1 like 2 or 3
    Bottom Region:
    text fields to enter (we can enter for only one at a time)
    ..I am able to grab it from the table in the DBase..But how can i get it to the email message..
    Appreciate your help
    thanks
    kp

    You can select the entire field and use the cold fusion left
    function. However, it would be more efficient to simply select
    select the 1st 20 characters in your query. How you do this depends
    on the db you are using.

  • How to set cursor to text field from message box in swing

    I am working Text Field validations in a swing application. when incorrect information is entred in text field a Message is displayed. When I click on OK button on message box I want to set the cursor position to that particular text field for which thet message is displayed.

    theOffendingTextfield.requestFocusInWindow();may need to be wrapped in a Swingutilities.invokeLater,
    and if you want the text highlighted (so you can just type in new text)
    theOffendingTextfield.requestFocusInWindow();
    theOffendingTextfield.selectAll();

  • Cannot get acrobat to autodetect text fields and check boxes

    I am attempting to take an existing pdf document (life insurance application) and turn it into a fillable form that I can use interactively to complete and sign on screen instead of having to print and fill out by hand.  The document has multiple pages including one page 18 that already has fields in it.  The rest of the document does not have fields in it.  When I attempt to create a form, it does not detect any of the other fields before page 18.  It does detect fields after page 18 where the previously fields were already in the original document.  What can I do to get Acrobat to detect the fields needed in the first 17 pages of the document and automatically insert them?  This is the reason I'm purchasing the software, for the automation of field insertion.  If it doesn't do that, there's many other software options that I can build a form in and insert the fields one at a time manually.  I don't want to do that because of the volume of documents I am going to be working with.  I can email the original document if that will help.
    Thanks in advance,
    Josh

    - You can't run the Fields Detection Wizard on a file that already has
    fields in it.
    - The reasons why the Wizard does or does not recognize a field, and what
    type of field, are not made public by Adobe. So basically if it works,
    great, if not, then you're out of luck...
    At any rate, be prepared to do some manual adjusting after running it
    because even when it works it often creates unwanted fields, fails to
    create wanted fields or creates fields with the wrong type (text boxes
    instead of check-boxes is a common problem).

  • Remove text field from Array via for loop

    Hi,
    i have a problem to remove text fields added via for loop.
    That im doing is, via for loop im dynamically creating menu with 10 buttons.
    Each button contain, dynamically created, background (shape) and text field.
    And everything is fine.
    But when im try to remove text fields then i got this error:
    - Im using button to remove text fields - lang_btn.addEventListener(MouseEvent.CLICK, clickHandler);
    ArgumentError: Error #2025: The supplied DisplayObject must be a child of the caller.
              at flash.display::DisplayObjectContainer/removeChild()
              at Loading_Img_fla::MainTimeline/xmlLoaded()
              at flash.events::EventDispatcher/dispatchEventFunction()
              at flash.events::EventDispatcher/dispatchEvent()
              at flash.net::URLLoader/onComplete()
    In the script bellow marked with red is what should remove text fields from an Array, instead giving me error.
    Here is my script
    // Create for loop
    for (var i:int = 0; i < 10; i++)
              for each (xml in listItems)
                        if (i == xml.attribute("Id"))
                                  // Add MovieClip to stage to hold the data
                                  addChild(lmHolder);
                                  lmHolder.x = 0;
                                  lmHolder.y = 0;
                                  // Create new MovieClip to hold buttons
                                  lmButtonsMCArray[i] = new MovieClip();
                                  lmButtonsMCArray[i].buttonMode = true;
                                  lmButtonsMCArray[i].mouseChildren = false;
                                  lmButtonsMCArray[i].x = 20;
                                  lmButtonsMCArray[i].y = 20 + btCount * buttonSpace;
                                  // Add each button MovieClip to lmHolder MovieClip
                                  lmHolder.addChild(lmButtonsMCArray[i]);
                                  // Create Background to buttons
                                  lmButtonsArray[i] = new Shape();
                                  lmButtonsArray[i].graphics.beginFill(lmBgColor0, 1);
                                  lmButtonsArray[i].graphics.drawRect(0, 0, 230, 85);
                                  lmButtonsArray[i].x = 0;
                                  lmButtonsArray[i].y = 0;
                                  // <<-- Add Background shape to the buttons MovieClips
                                  lmButtonsMCArray[i].addChild(lmButtonsArray[i]);
                                  // Create a new array to preserve data from XML List
                                  lmNameArrayEG = new Array();
                                  lmNameArrayUS = new Array();
                                  // Create local variable to hold
                                  var lmTxtFieldContentUS:String;
                                  var lmTxtFieldContentEG:String;
                                  var lmTxtContent:String;
                                  // If clicked button is EG then make array with Arabic text
                                  // If clicked button is US then make array with English text
                                  if (footer.lang_btn.langState == "EG")
                                            for each (var leftMenuName:XML in egLanguageList)
                                                      lmNameArrayEG.push(leftMenuName);
                                            lmTxtFieldContentEG = lmNameArrayEG[i];
                                            lmTxtContent = lmTxtFieldContentEG;
                                  else
                                            for each (var leftMenuNameUS:XML in usLanguageList)
                                                      lmNameArrayUS.push(leftMenuNameUS);
                                            lmTxtFieldContentUS = lmNameArrayUS[i];
                                            lmTxtContent = lmTxtFieldContentUS;
                                  // Setup new text field each time script is executed
                                  lmTxtFieldsArray[i] = new TextField();
                                  lmTxtFieldsArray[i].width = 110;
                                  lmTxtFieldsArray[i].border = false;
                                  lmTxtFieldsArray[i].wordWrap = true;
                                  lmTxtFieldsArray[i].multiline = true;
                                  lmTxtFieldsArray[i].selectable = false;
                                  lmTxtFieldsArray[i].embedFonts = true;
                                  lmTxtFieldsArray[i].antiAliasType = AntiAliasType.ADVANCED;
                                  lmTxtFieldsArray[i].autoSize = TextFieldAutoSize.CENTER;
                                  lmTxtFieldsArray[i].text = lmTxtContent.toUpperCase();
                                  lmTxtFieldsArray[i].x = 10;
                                  lmTxtFieldsArray[i].name = "lmTxtFieldName" + i;
                                  // <<-- Add Text fields to the Movie Clip
                                  lmButtonsMCArray[i].addChild(lmTxtFieldsArray[i]);
                                  // If clicked button is EG then set Arabic text format, and make array with Arabic text fields
                                  // If clicked button is US then set English text format, and make array with Egnlish text fields
                                  if (footer.lang_btn.langState == "EG")
                                            lmTxtFieldsArray[i].setTextFormat(txtFormat_lm_eg);
                                            // Make array from text fields;
                                            pushEgTFintoArray.push(lmTxtFieldsArray[i]);
                                  else
                                            lmTxtFieldsArray[i].setTextFormat(txtFormat_lm_us);
                                            // Make array from text fields;
                                            pushUsTFintoArray.push(lmTxtFieldsArray[i]);
                                  // If clicked button is EG then loop thrue the for loop and remove English text fields from array
                                  // If clicked button is EG then loop thrue the for loop and remove Arabic text fields from array
                                  if (footer.lang_btn.langState == "EG")
                                            for (var rNr_us:Number = 0; rNr_us < pushUsTFintoArray.length; rNr_us++)
                                                      //remove the text field array from the display
                                       removeChild(pushUsTFintoArray[rNr_us]);
                                            //clear the array
                                            pushUsTFintoArray = [];
                                  else
                                            for (var rNr_eg:Number = 0; rNr_eg < pushEgTFintoArray.length; rNr_eg++)
                                                      //remove the text field array from the display
                                       removeChild(pushEgTFintoArray[rNr_eg]);
                                            //clear the array
                                            pushEgTFintoArray = [];
              btCount++;

    it looks like those tf's are children of  lmButtonsMCArray[i], not the current scope.  use:
    if (footer.lang_btn.langState == "EG")
                                            for (var rNr_us:Number = 0; rNr_us < pushUsTFintoArray.length; rNr_us++)
                                                      //remove the text field array from the display
                                        lmButtonsMCArray[rNr_us].removeChild(pushUsTFintoArray[rNr_us]);
                                            //clear the array
                                            pushUsTFintoArray = [];
                                  else
                                            for (var rNr_eg:Number = 0; rNr_eg < pushEgTFintoArray.length; rNr_eg++)
                                                      //remove the text field array from the display
                                        lmButtonsMCArray[rNr_eg].removeChild(pushEgTFintoArray[rNr_eg]);
                                            //clear the array
                                            pushEgTFintoArray = [];

  • Populating Multirecord text fields from Tlists value's combinations

    I have a UI wherein there are two T lists, one on the Left and other on the Right. The left one contains
    From values and the Right one contains To values. There's one Button which when Pressed should populate
    a Data Block which has multi record text fields just below the button with all the possible combinations of
    the T lists elements. The Text fields have the values From, To, Time, Unit. When populated From and Two will
    get the values from the combinations and the user will enter the values in other fields i.e. Time and Unit,
    Then the user can save the Records.
    e.g. If the Left T list contains Red, Blue and the Right T List contains Green, Black. Then on pressing
    the button below the T lists, the text fields From and Two of a data block displayed in the same window
    should get populated with all the possible combinations as:
    From || To || Unit || Time
    Red Green
    Red Black
    Blue Green
    Blue Black
    Now the user can enter the values for Unit as well as Time and when he does save the Records should be inserted
    for the Data Blocks DML Source that's some table.
    What I'm trying is:
    On pressing the Button i'm writing code that will have Two PL/SQL Tables(Index by binary_integer). One will have
    all the values of the left T List and the other with all the values of right T List.
    I do it as in the WHEN BUTTON PRESSED as:
    DECLARE
    TYPE varchar_table IS TABLE OF VARCHAR2(30) INDEX BY BINARY_INTEGER;
    from varchar_table;
    to varchar_table;
    v_count1 NUMBER;
    v_count2 NUMBER;
    v_count3 NUMBER;
    v_count4 NUMBER;
    BEGIN
    v_count1 := Get_List_Element_Count('CONTROL.FROM_TYPE');
         FOR i IN 1..v_count1 LOOP
              from(i) := Get_List_Element_Value('CONTROL.FROM_TYPE', i);
         END LOOP;
    v_count2 := Get_List_Element_Count('CONTROL.TO_TYPE');
         FOR i IN 1..v_count2 LOOP
              to(i) := Get_List_Element_Value('CONTROL.TO_TYPE', i);
         END LOOP;
    END;
    Now how will I populate the text fields with the values in the tables that i got with the piece of code above.
    Any help would be appreciated. Any other method other than the one i'm trying is also welcome. Please note that
    i'm not using any table to store the elements in the T Lists. The lists get values at runtime by
    user's selection.
    Thanks,
    Abhishek.

    Try and stay civil in your postings. The solotion should be to simply issue a GO_BLOCK, followed by a CREATE_RECORD followed by setting the approriate values :block.value = <value from list>

  • How to remove the automatically generated text fields from the InfoSet

    I followed the procedure by SAP help.
    Automatically generated text fields are marked with a 'T' on the icon in the InfoSet. You can remove the automatically generated text fields from the InfoSet in the initial screen of the InfoSet maintenance under Further Functions -> Delete Text Fields. Cancel the DataSource creation on the next screen and delete the text fields in the InfoSet maintenance transaction.
    I know that there is an option "No automatic text recognition" when I create a new InfoSet, however, I couldn't find out how to change an existed InfoSet. I checked menu Goto->Global Properties, but that option is disabled. Is there a way to remove text fields from an existed InfoSet?

    Hi,
    In the initial screen (when you enter transaction code SQ02) type your infoset name and goto menu: Infoset -> More functions -> Delete text fields. this will delete all text fields.
    I hope this helps to resolve the issue.
    Ram

  • How can I get the "text" field from the actionEvent.getSource() ?

    I have some sample code:
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import java.util.ArrayList;
    public class JFrameTester{
         public static void main( String[] args ) {
              JFrame f = new JFrame("JFrame");
              f.setSize( 500, 500 );
              ArrayList < JButton > buttonsArr = new ArrayList < JButton > ();
              buttonsArr.add( new JButton( "first" ) );
              buttonsArr.add( new JButton( "second" ) );
              buttonsArr.add( new JButton( "third" ) );
              MyListener myListener = new MyListener();
              ( (JButton) buttonsArr.get( 0 ) ).addActionListener( myListener );
              ( (JButton) buttonsArr.get( 1 ) ).addActionListener( myListener );
              ( (JButton) buttonsArr.get( 2 ) ).addActionListener( myListener );
              JPanel panel = new JPanel();
              panel.add( buttonsArr.get( 0 ) );
              panel.add( buttonsArr.get( 1 ) );
              panel.add( buttonsArr.get( 2 ) );
              f.getContentPane().add( BorderLayout.CENTER, panel );
              f.setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE );
              f.setVisible( true );
         public static class MyListener  implements ActionListener{
              public MyListener() {}
              public void actionPerformed( ActionEvent e ) {
                   System.out.println( "hi!! " + e.getSource() );
                   // I need to know a title of the button (which was clicked)...
    }The output of the code is something like this:
    hi! javax.swing.JButton[,140,5,60x25,alignmentX=0.0,alignmentY=0.5,
    border=javax.swing.plaf.BorderUIResource$CompoundBorderUIResource@1ebcda2d,
    flags=296,maximumSize=,minimumSize=,preferredSize=,defaultIcon=,disabledIcon=,
    disabledSelectedIcon=,margin=javax.swing.plaf.InsetsUIResource[top=2,left=14,bottom=2,
    right=14],paintBorder=true,paintFocus=true,pressedIcon=,rolloverEnabled=true,
    rolloverIcon=,rolloverSelectedIcon=,selectedIcon=,text=first,defaultCapable=true]
    I need this: "first" (from this part: "text=first" of the output above).
    Does anyone know how can I get the "text" field from the e.getSource() ?

    System.out.println( "hi!! " + ( (JButton) e.getSource() ).getText() );I think the problem is solved..If your need is to know the text of the button, yes.
    In a real-world application, no.
    In a RW application, a typical need is merely to know the "logical role" of the button (i.e., the button that validates the form, regardless of whether its text is "OK" or "Save", "Go",...). Text tends to vary much more than the structure of the UI over time.
    In this case you can get the source's name (+getName()+), which will be the name that you've set to the button at UI construction time. Or you can compare the source for equality with either button ( +if evt.getSource()==okButton) {...}+ ).
    All in all, I think the best solution is: don't use the same ActionListener for more than one action (+i.e.+ don't add the same ActionListener to all your buttons, which leads to a big if-then-else series in your actionPerformed() ).
    Eventually, if you're listening to a single button's actions, whose text change over time (e.g. "pause"/"resume" in a VCR bar), I still think it's a bad idea to rely on the text of the button - instead, this text corresponds to a logical state (resp. playing/paused), it is more maintainable to base your logic on the state - which is more resilient to the evolutions of the UI (e.g. if you happen to use 2 toggle buttons instead of one single play/pause button).

  • Field only check box in extraction

    Hi
    what is use of field only check box in extraction
    for selection its reflect data selection tab at infopackage
    hide menas its wont reflect
    inversion menas multiple with -1
    field only is anothe one
    what is use of field only
    regards
    suneel.

    HI Suneel,
    Hide and filed only are depend on each other... For example u have done the enhancement to the data source with the Revenue field. And revenue is nothing but Price * Quantity. And price and quantity u have these fileds in data souce already but u dont want them in BW. U want them in the calculation.
    So we select Hide to not to come into BW and Field only to use them in the calculations.
    Khaja

  • Field only check box

    Hi Friends,
    what is the use of field only check box iam littelebit confused, could you explain me clearly.
    Thanks and Regards
    Venkat.Marneni

    Hi,
    If you do enhancement for a datasource it will be used:
    The indicator Field known only in Exit is set for the fields in an append structure, meaning that by default, these fields are not passed to the extractor in the field list and the selection table.
    So by default it won't get data, so remove the tick mark and then do the mapping in BW.
    Thanks
    Reddy

  • Interactive fields and check boxes don't stay in tab order

    Hi everyone. I'm creating a census form for my parish which contains questions and check boxes. I've laid out the first section of this form (called Household Member 1), then gone back and added all the text fields / check boxes in the order in which I want the user to be able to tab through the form. When I open the Tab Order dialogue box to make sure the user will be able to tab through the form correctly, all the fields / check boxes are in the correct order. Now I need the exact same sections repeated... Household Member 2, Household Member 3, etc. In total, there will be 7 sections on the form that request the exact same information. So after I get the first section the way I want it, I copy and paste, or drag and duplicate the section with all it's fields onto the next page. However, when I check the Tab Order on this subsequent sections, all of my check boxes have moved to the end of the list, requiring me to have to manually move each check box back into its correct position in the section. This happens every time I duplicate the section... I have to manually put the tabs in their correct order. I tried duplicating the entire page rather than just duplicating the section, and the same thing happens. These fixes are tedious to say the least. Any thoughts about how to fix this would be appreciated.
    I'm using CS6 on a Mac with OS 10.8.3

    Start Firefox in [[Safe Mode]] to check if one of your add-ons is causing your problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    See [[Troubleshooting extensions and themes]] and [[Troubleshooting plugins]]
    If it does work in Safe-mode then disable all your extensions and then try to find which is causing it by enabling one at a time until the problem reappears.
    You can use "Disable all add-ons" on the ''Safe mode'' start window.
    You have to close and restart Firefox after each change via "File > Exit" (on Mac: "Firefox > Quit")

  • Displaying text in a combo box.

    Hi, i was wondering if anyone could help me finish an application i am working on. I have two forms, one inputs dat to a text file and another retrieves it. i want to display the text in a combo box and then click an event in the combo box and a description
    of the event will appear in a text  box, also if i select a date on the second form the events in the combo box change for that date if there is events for it. the first form is working fine , i was looking for help with the second one please. my code
    so far is:
    namespace TicketInformation
       public partial class TicketInformationForm : Form
          public TicketInformationForm()
             InitializeComponent();
          //creating the community events list.
          List<Community_Event> CommnunityEvents;
          //create the Create Event list method.
          private void CreateEventList()
             CommnunityEvents = new List<Community_Event>();
             // call the extract Data method.
             ExtractData();
             //Clear any events from the combo box before proceeding.
             eventComboBox.Items.Clear();
             //for each event item in the Commuity event list,add it to the eventComboBox.
             foreach (Community_Event item in CommnunityEvents)
                eventComboBox.Items.Add(item.Description);
             //if the events count is greater then 0, display the following
             if (CommnunityEvents.Count > 0)
                //if there are no events for the date selected display the following
                eventComboBox.Text = " -Events- ";
                descriptionTextBox.Text = "Pick an event";
             }//end if
             else
                //if there are no events for the date selected display the following
                eventComboBox.Text = " No Events ";
                descriptionTextBox.Text = "No events today.";
             }//end else
          //Creating the Method ExtractData
          private void ExtractData()
             CommnunityEvents.Clear();
             // load the data from the file
             List<Community_Event> tempList = new List<Community_Event>();
             //string[] fileLines = File.ReadLines(@"C:\Users\IAN\Documents\calendar.txt");
             foreach(string line in File.ReadLines("calendar.txt"))
                string[] items = line.Split(",".ToCharArray());
                if (items.Length >= 5)
                   Community_Event newEvent = new Community_Event();
                   newEvent.Day = Convert.ToInt32(items[0]);//Converting the Integer to a string.
                   newEvent.Time = items[1];
                   newEvent.Price = Convert.ToDecimal(items[2]);//Converting the decimal to a string.
                   newEvent.Event = items[3];
                   newEvent.Description = items[4];
                   //add the new events to the Comminity Events list.
                   CommnunityEvents.Add(newEvent);
             CommnunityEvents = (from ev in tempList
                                          where ev.Day == 1
                                          select ev).ToList();
          private void dateMonthCalendar_DateChanged(object sender, DateRangeEventArgs e)
             //calling the create event list method to display any events in the eventscombo box.
             CreateEventList();
          private void eventComboBox_SelectedIndexChanged(object sender, EventArgs e)
          private void descriptionTextBox_TextChanged(object sender, EventArgs e)
          private void TicketInformationForm_Load(object sender, EventArgs e)
             //calling the create event list to open the form with today's events displayed if any.
             CreateEventList();
     public class Community_Event
          //Declare a DayValue property of type int
          private int DayValue;//day of the event
          public int Day// Name of the Property
             get
                return DayValue;
             set
                DayValue = value;
          //Declare a TimeValue property of type string
          private string timeValue;//time of the event
          public string Time// Name of the Property
             get
                return timeValue;
             set
                timeValue = value;
          //Declare a priceValue property of type Decimal
          private decimal priceValue;//price of the event
          public decimal Price// Name of the Property
             get
                return priceValue;
             set
                priceValue = value;
          //Declare a eventNameValue property of type string
          private string eventNameValue;//name of the event
          public string Event// Name of the Property
             get
                return eventNameValue;
             set
                eventNameValue = value;
          //Declare a DescriptionValue of type string
          private string DescriptionValue;//description of the event
          public string Description// Name of the Property
             get
                return DescriptionValue;
             set
                DescriptionValue = value;
    Thanks
    D

    Hi Dylan2412,
    According to your description, you'd like to pass the ComboBox.Text to the second form's TextBox.
    In Form1:
    private void button1_Click(object sender, EventArgs e)
    Form2 f2 = new Form2(this.comboBox1.Text); //pass the comboBox1.Text
    f2.Show();
    In Form2:
    public Form2(string s) //get the string;
    InitializeComponent();
    this.textBox1.Text = s;
    You could get the comBoBox refer to this sample above.
    If you have any other concern regarding this issue, please feel free to let me know.
    Best regards,
    Youjun Tang
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Populating Text Field from Multi Checkboxes

    Need help with formula.  Not sure whether or not I should be using FormCalc or Javascript as I am not extremely familiar with either.  I have a form that has three checkboxes (Box1, Box2, & Box3) that need to auto populate a text field (EmpAck).  I have tried three different ways to get this done and none are working for me.  What I need to happen is if "Box1" is checked "Text1" is inserted in "EmpAck" field and if "Box2" is checked "Text2" is instered & so on.  The texts are never the same and never added together.  I have set "EmpAck" to be read only, allowing multiple lines, and have the "Expand to fit box marked as the texts' are different lengths.  Any help would be great.
    1. // This would go in the Textfield under calulate using FormCalc
    if (Box1 = "On") then
    EmpAck = "Text1"
    elseif (Box2 = "On") then
    EmpAck = "Text2"
    elseif (Box3 = "On") then
    EmpAck = "Text3"
    endif
    2. //This would go in the checkbox "Box1" changing "Text1" to "Text2" or "Text3" as required under mouseup using JavaScript (found under http://forums.adobe.com/message/2489082#2489082)
    if (this.rawValue == 1)
    {EmpAck.rawValue = "Text1";}
    else {EmpAck.raqValue = " ";}
    3.//This would go in textfield under calcuate using JavaScript (found under http://forums.adobe.com/message/4108395#4108395)
    var a =" "
    if (this.getField(Box1).value == "Yes")
    {a="Text1"}
    if (this.getField(Box2).value == "Yes")
    {a="Text2"}
    if (this.getField(Box3).value == "Yes")
    {a="Text3"}
    event.value=a

    Found my problem.  Was using different subforms without including in the formula.

  • PHP/MySQL: 'Add New' text field from menu in form

    I am creating an events posting website. I'm having a hard time finding the right words to describe this, but: I'd like the user to select a venue from the drop menu, but then if it isn't there, to select 'add new' from the dynamic menu, and have a new text field activate where they can enter in the new venue name. My database is currently set up so the event table links to the venue table through a venueID. Is there a way to insert the name from the new text field into the venue table, and have the rest of the form still submit to the event table? Sorry this is so wordy, but I'd appreciate any help. Thank you.

    You cannot add a new value to a related table at the same time as inserting a record. So, to do this, you would need to use both JavaScript to add the new text field, and PHP conditional logic to handle the update to both tables. It's certainly doable, but not with the Dreamweaver server behaviors. You would need to do a lot of hand-coding yourself.
    The way that I approached a similar problem in my "Essential Guide to Dreamweaver CS4" was to permit NULL values in the column that holds the foreign key, and insert nothing into that field if the value hadn't already been registered in the related table. I created a static value in the dynamic menu for "Not registered".
    After inserting the new record with "not registered", the user then needs to enter the new value in the related table.
    Once that has been done, display a page that lists all records. In the SQL, I use a LEFT JOIN to ensure that "not registered" items come up as well. You can then edit the item to add the value from the dynamic menu.
    It's not the most elegant way to do it, but it works if you don't have the skill or time to hand-code all the logic yourself.

Maybe you are looking for