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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T01:35:40+00:00 2026-05-24T01:35:40+00:00

This morning I am fighting with an issue. I need to have users fill

  • 0

This morning I am fighting with an issue. I need to have users fill out a multi-step form. Certain steps of the form will have checkboxes that when set to ‘true’ should dynamically show an upload button.

Is this something that is relatively easy to do?

Update – Now you will all hate me.

My razor view has one line to generate each step.

@Html.EditorFor(x => currentStep,null,"")

So adding jquery in a straight forward manner isn’t an option I don’t think.

My ViewModel works like this. It dynamically generates a list of steps based on classes that implement the IStepViewModel interface. So… You see the issue maybe?

  [Serializable]
    public class WizardViewModel
    {
        
        public String AccountNumber { get; set; }
        public int CurrentStepIndex { get; set; }
        public Boolean IsInitialized { get { return _isInitialized; } }

        public IList<IStepViewModel> Steps { get; set; }

        private Boolean _isInitialized = false;

        public void Initialize()
        {
            try
            {
                Steps = typeof(IStepViewModel)
                    .Assembly.GetTypes().Where(t => !t.IsAbstract && typeof(UploadViewModel).IsAssignableFrom(t)).Select(t => (IStepViewModel)Activator.CreateInstance(t)).ToList();
                _isInitialized = true;
                //rewrite this.  get the profile and wire them up or something.
                this.AccountNumber = Tangible.Profiles.DR405Profile.CurrentUser.TangiblePropertyId;

            }
            catch (Exception e)
            {

                _isInitialized = false;
            }
        }
    }
  • 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-24T01:35:40+00:00Added an answer on May 24, 2026 at 1:35 am

    you need to assign check events to each checkbox, then check the values and then show the button. Something like this (adapt for multiple check boxes)

    $(init);
    function init() {
        $("#Checkbox1").change(checkBoxChanged);//add check event to all check boxes
    }
    
    function checkBoxChanged(){
        if($("#Checkbox1").attr("checked"))//evaluate all checkbox conditions here
            $("#Button1").show();
        else
            $("#Button1").hide();
    }
    

    Note that these required ID values of you elements. If you want to set the event for all checkboxes at the same time you can use the class selector. So if all your checkboxes have a class of “MyCheckbox” you can assign same event to them all like…

    $(".MyCheckbox").change(checkBoxChanged);
    

    Not sure about this next bit but maybe it is worth trying something like this too…

    if($(".MyCheckbox").attr("checked"))//could work to evaluate all checked (not sure though)
        $("#Button1").show();
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I found out this morning that proc.new works in a class initialize method, but
this morning I came across this code, and I have absolutely no idea what
This morning I stumbled over a weird issue in Visual Studio's Windows Forms designer.
Until this morning I did not know it was possible to have JavaScript in
This morning Maven starts complaining with this error: error: multi-catch statement is not supported
This morning I tried running a Silverlight 5 App that we have been building
This morning I ran into an issue with returning back a text string as
We had some problems this morning and need to rollback our database for about
This morning, I find myself writing something like: if (a == b == c):
This morning in my CS lab, I was compiling and executing some C code.

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.