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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T07:51:52+00:00 2026-05-26T07:51:52+00:00

In my Ext Js3 application I created a form with a checkbox with the

  • 0

In my Ext Js3 application I created a form with a checkbox with the following code:

    }, {
        xtype: 'checkbox',
        fieldLabel: 'Is Automation Failure',
        inputValue: 'true',
        name: 'isAutomationFailure'
    }, {

When I check the checkbox it correctly sends isAutomationFailure: true to my Asp.NET MVC action, and life is good. However, if I leave the checkbox unchecked, it gives:

The parameters dictionary contains a null entry for parameter ‘isAutomationFailure’ of non-nullable type ‘System.Boolean’ for method

I understand that checkboxes do not send anything over if a checkbox isn’t checked, but I was under the impression that a non-specified bool would default to false if not specified. My action has the following signature:

    public virtual JsonResult SetTestRunFailureInfo(int runId, bool isAutomationFailure, int? tfsWorkitemId)

How can I get this to work (without having to resort to turning the parameter into a nullable type)?

  • 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-26T07:51:53+00:00Added an answer on May 26, 2026 at 7:51 am

    Change your bool to bool? and treat null as false. That’s a “feature” of Ext JS.

    isAutomationFailure = isAutomationFailure ?? false;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Ext.Ajax.request({url:'DeleteAction',success: doneFunction,failure: errorFunction,params:{name:rname}}); The above code is my Ajax request which goes to DeleteAction
I'm using Ext.form.field.Combobox as cell editors in grid panel: product: { xtype : anypartfiltercombobox,
I use Ext.form.ComboBox in very similar way as in this example: http://extjs.com/deploy/dev/examples/form/forum-search.html What annoys
We are using Ext JS for an application in work, building a custom theme
following extjs3 problem: i have an json store: dbStore = new Ext.data.JsonStore({ url: '/?[action]=getFormData',
I am migrating my Ext JS 3.3.1 application to Ext JS 4 (with compatability
By default, a FormPanel in ExtJS 3.1.0 posts the form fields as application/x-www-form-urlencoded when
With ExtJs 3.1 My Ext.form.ComboBox is built with a store in which some values
I defined an Ext.window and there is a form inside it,and form contains a
We have got an extjs 3.1.1 form with file upload field ( http://www.extjs.com/deploy/dev/examples/form/file-upload.html from

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.