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 8073169
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T14:15:12+00:00 2026-06-05T14:15:12+00:00

I am trying to create a form for collecting information about an item. There

  • 0

I am trying to create a form for collecting information about an item. There are two types: default item and special item. The fields of item shows on the form by default.

public class Item
{
   Id
   Name
   Quantity
   Type //default, special
}

public class SpecialItem : Item //inherits from item
{
   //extra fields here
   ExpiryDate
   SafeForChildren
}

How will I take the extra fields of SpecialItem to user.

I think the fields of SpecialItem should not show until the user indicates he wants to add special item by selecting the type.

I think of using a tab to show extra fields
A collapsible control – I don’t if this exists
Hiding the controls and showing them when necessary
Any other idea

  • 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-06-05T14:15:15+00:00Added an answer on June 5, 2026 at 2:15 pm

    If the two class have a clear relation between them and this relation is well comprensible to your user, I think it’s a good thing to show every field.
    Put all the fields inside a groupbox and add two option buttons for the Item and SpecialItem class.
    By default (at form load) the Item class will be selected and the two extra field are disabled.
    If the user choose the SpecialItem class option button, enable the other two fields.

    I have seen this behavior in many options dialogs when selecting an option will enable other specific options.

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

Sidebar

Related Questions

Using C#, I'm trying to create a form with a dataGridView that shows the
I am trying to create a form in Sharepoint using C#. I don't know
I am trying to create a form with many groups containing many radio buttons.
I am trying to create a form with webbrowser control. I am trying to
I am trying to create a form using only JavaScript. I mean create a
I'm trying to create a form that based on the users input would determine
I'm trying to create a form that clients would complete via the web, so
Im a Titanium Beginner who is trying to create a form page with 2
I am new to zend. I am trying to create login form using zend
I'm trying to create a custom form input that utilizes some images, it should

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.