[KULRICE-12702] Disabled checkbox loses value when submitting a form Created: 20/May/14  Updated: 16/Jan/15

Status: Open
Project: Kuali Rice Development
Component/s: Development, User Experience (UX)
Affects Version/s: 2.4
Fix Version/s: 2.6
Security Level: Public (Public: Anyone can view)

Type: Bug Fix Priority: Critical
Reporter: Larry Symms Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: Old
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Discovered
discovered by KSENROLL-11286 Awaiting Rice Fix - Disabled checkbox... Open
Similar issues:
KULRICE-1374EDocLite does not properly handle multi-value checkboxes in the case of rendering as read-only
KULRICE-12002Lookup with lightbox disabled opens new window upon returning a value
KULRICE-11376HiddenFields are not submitted when part of progressive rendered section.
KULRICE-10394Clear data for fields when disabled
KULRICE-4118Checkbox Controls associated with Kim attributes are not displaying correctly
KULRICE-6731Values are not being held when using checkbox group or radio controls
KULRICE-8126Collection control does not honor disable if disable is disabled by an expression for collection refresh
KULRICE-9846defaultValue not applied before disabled expression evaluation on initialization
KULRICE-5532all radio and checkbox groupings should be contained in <fieldset> tags
KULRICE-2505user tag losing information when the session security work is activated
Epic Link: Technical Issues
Rice Team: Framework
Application Requirement:
KS
KAI Review Status: Not Required
KTI Review Status: Not Required
Code Review Status: Not Required
Include in Release Notes?:
Yes

 Description   

A disabled check-box that has its state value set to true loses its value when submitting a from ,Because disabled fields are not submitted as part of a form, the data is getting lost.

This problem occurs in KS at:
1. http://env2.ks.kuali.org/kr-krad/finalExamRules?viewName=FEAgendaManagementView&dataObjectClassName=org.kuali.student.enrollment.class1.krms.dto.FERuleManagementWrapper&methodToCall=start&withinPortal=false&formKey=23df5d21-1532-4c2e-8301-14280b92c76d&cacheKey=uzkvfnk0rkric9skju5ub7f1or&pageId=KSFE-SearchInput-Page
2.search for Fall Term
3.Observe that the check box for "Standard Final Exam location determined by Activity Offering location" is checked
4. Click Add to add a new rule
5. Cancel from that Add rule screen
6. Observe that the check box is now unchecked
7. Start from the beginning. If you call the matrix fresh, the check box is checked.

Expected: The checkbox state to true/checked always
Note: This currently works because of workaround implemented on KSENROLL-11141 - During editing/adding of rule service call is made to populate the location with the correct state.

    <bean id="KS-KitchenSink-Checkbox-Disabled-Parent" parent="Uif-InputField"
          p:label="Disabled checkbox" p:propertyName="disabledSelectedCheckbox"
          p:labelPlacement="LEFT"
          p:uppercaseValue="false">
        <property name="control">
            <bean parent="Uif-CheckboxControl" p:disabled="true"/>
        </property>
    </bean>

Generated at Mon Nov 18 00:13:37 CST 2019 using JIRA 6.1.5#6160-sha1:a61a0fc278117a0da0ec9b89167b8f29b6afdab2.