Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6671435
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T03:23:17+00:00 2026-05-26T03:23:17+00:00

When trying to search for this specific thing I’d like to do, I end

  • 0

When trying to search for this specific thing I’d like to do, I end up only finding how to create the drop down menu from a database, which I have already done. I’m building a list to track completed tasks of a predefined number of people that are in their own table. The record will save the name of the person that completed the task What I’m looking for is as follows:

Employee Table:
— (nothing selected)

Sara Johnson
John Doe
Mark O’Brien

Task Table:
Clean counters
Unlock doors
Turn on lights

So right now there is the task, then a drop down that puts the employees names in it. What I want is, if insert a record, then come back to the page, to automatically see if the task has someone that has completed it and automatically select it, but leaves the possibility to be changed from the same drop down.

Right now, it will delete the current record with whatever the user puts in, so if they didn’t know if someone turned on the lights, it will erase it and replace it with “—.” This makes the user have to look up the record, see if anyone put anything in, then, basically recreate the record as it was, then add whatever changes they needed.

I hope that makes any kind of sense.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T03:23:17+00:00Added an answer on May 26, 2026 at 3:23 am

    I have some trouble understanding your problem but what I assume you are looking for is a way to set the default selection of a drop down field. In HTML you can do that by adding the attribute selected="selected" to the <option> tag. It would look like this:

    <select name="foo" size="1">
        <option value="1">Value 1</option>
        <option value="2" selected="selected">Value 2</option>
    </select>
    

    If that is not what you meant, please explain further. 🙂

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to create a search page, this allows the admin to search
I am trying to do something like this: if params[:q] loc = Geocoder.search(params[:q])[0] logger.info
I am trying to search an XML field within a table, This is not
This is a simple question I think. I am trying to search for the
I've been trying to find some manual information on this, but my search is
From working on this specific situation, it was news to me that the logic
I am trying to search for the substring abc in a specific file in
I'm trying to search through my inbox to find specific email's but there every
I am trying to search within a string for a specific value. What I
I am trying to search all image tags on a specific page. An example

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.