Dynamically populating form fields

Ask a Question related to Dreamweaver AppDev, Design and Development.

  1. #1

    Default Dynamically populating form fields

    I have a form that will be available for users to complete to add information
    to my database.

    When they log in they provide their department code which is saved as a
    session variable. What I want to do is when they click the link to "ADD DATA"
    - I would like the cells of the table that contain the information relevant to
    that department for instance, manager, location etc to fill automatically. I
    can get the department number to display on the form as this is the session
    variable but it doesnt update in the database and leaves a blank field. Some
    of the remainnig fields will be input fields that they will provide the
    information for which I have updating the database nicely. Other bits of
    information wil be relevant to the session variable but pulled from the
    recordset.

    Is this possible? Help will be gratefullly appreciated.

    Kind regards
    Emma Gale


    galeemma Guest

  2. Similar Questions and Discussions

    1. Dynamically Adding Fields to Form
      Anyone have any ideas on how to dynamically add input fields to a flash form with action script? I need the user to be able to add fields on the...
    2. Dynamically Adding Form Fields to CF Flash Form
      I think I know the answer to this but, after some failed Googles, I wanted to double-check here. I have a Flash-based event registration form I'm...
    3. Dynamically Populating comboBox
      Hi There, I have a combo box which is dynamically populated from a Database. The problem is I can not load the actionScript function which...
    4. Dynamically creating fields in a flex form
      Hello frieds, I am wondering if it would be possible with Flex to dynamically generate a form by quering a small databse that would return via...
    5. Dynamically creating form fields from DB
      Hi All I've just been doing a basic Contact Us form and having actually structured it for a change I noticed that a lot of repetitive and could...
  3. #2

    Default Re: Dynamically populating form fields

    Sure .. filter the recordset by the session variable and bind the columns
    that are to be autofilled to the text fields that should already be filled
    in.


    --
    Nancy Gill
    Team Macromedia Volunteer for Dreamweaver MX/UltraDev
    [url]http://www.macromedia.com/go/team/[/url]
    Co-Author: Dreamweaver MX: Instant Troubleshooter (August, 2003)
    Technical Editor: DMX 2004: The Complete Reference, DMX 2004: A Beginner's
    Guide, Mastering Macromedia Contribute
    Technical Reviewer: Dynamic Dreamweaver MX/DMX: Advanced PHP Web Development

    "galeemma" <webforumsuser@macromedia.com> wrote in message
    news:d48fie$ej7$1@forums.macromedia.com...
    > I have a form that will be available for users to complete to add
    information
    > to my database.
    >
    > When they log in they provide their department code which is saved as a
    > session variable. What I want to do is when they click the link to "ADD
    DATA"
    > - I would like the cells of the table that contain the information
    relevant to
    > that department for instance, manager, location etc to fill automatically.
    I
    > can get the department number to display on the form as this is the
    session
    > variable but it doesnt update in the database and leaves a blank field.
    Some
    > of the remainnig fields will be input fields that they will provide the
    > information for which I have updating the database nicely. Other bits of
    > information wil be relevant to the session variable but pulled from the
    > recordset.
    >
    > Is this possible? Help will be gratefullly appreciated.
    >
    > Kind regards
    > Emma Gale
    >
    >

    Nancy Gill Guest

  4. #3

    Default Re: Dynamically populating form fields

    Thank you Nancy,

    I take it that means that I have to include text fields. I did think about
    that but I was hoping that there would be a way that would allow me to do this
    without allowing ther user to edit them.

    best wishes emma

    galeemma Guest

  5. #4

    Default Re: Dynamically populating form fields

    You could add Hidden fields, so the data is not show, but is still available to
    you to add into the database via your form.

    Originally posted by: galeemma
    Thank you Nancy,

    I take it that means that I have to include text fields. I did think about
    that but I was hoping that there would be a way that would allow me to do this
    without allowing ther user to edit them.

    best wishes emma



    CarlGrint Guest

  6. #5

    Default Re: Dynamically populating form fields

    Yes, definitely .. Just set a name for your hidden field and bind the active
    column to the hidden field rather than a text field. As long as the hidden
    field is within the form parameter, you will still see the field in the
    Insert Record behavior.


    --
    Nancy Gill
    Team Macromedia Volunteer for Dreamweaver MX/UltraDev
    [url]http://www.macromedia.com/go/team/[/url]
    Co-Author: Dreamweaver MX: Instant Troubleshooter (August, 2003)
    Technical Editor: DMX 2004: The Complete Reference, DMX 2004: A Beginner's
    Guide, Mastering Macromedia Contribute
    Technical Reviewer: Dynamic Dreamweaver MX/DMX: Advanced PHP Web Development

    "CarlGrint" <webforumsuser@macromedia.com> wrote in message
    news:d48j52$k8e$1@forums.macromedia.com...
    > You could add Hidden fields, so the data is not show, but is still
    available to
    > you to add into the database via your form.
    >
    > Originally posted by: galeemma
    > Thank you Nancy,
    >
    > I take it that means that I have to include text fields. I did think
    about
    > that but I was hoping that there would be a way that would allow me to do
    this
    > without allowing ther user to edit them.
    >
    > best wishes emma
    >
    >
    >

    Nancy Gill Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139