1. SmartClient Version: v9.1p_2014-07-23/Pro Deployment (built 2014-07-23)
2. Build identifier: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Firefox/31.0
3. N/A
4. N/A
5. N/A
6. Code follows
The important field is named "fieldToHide" which is unfortunately no longer hidden despite the "hidden" flag set to true. This has led to many "hidden" fields appearing on my application. The latest build (10.0p Built 2014-10-22) has this bug and so does the v9.1p_2014-07-23/Pro Deployment (built 2014-07-23) which is my production deployment.
Navigate to the following link which is the Hands on demo of SmartClient (currently running 10.0p Built 2014-10-22)
DataBinding --> Validation --> Customized Binding (http://www.smartclient.com/#validationFieldBinding)
Under the "users.dx.xml" tab, paste in
Under the "customBinding.js" tab, paste in
Trying out this sample leads to the screenshot "HiddenFieldsStillAppearing" with the title being correctly overridden but with the "hidden" flag not respected.
I would need the fix in SmartClient Version: v9.1p_2014-07-23/Pro Deployment (built 2014-07-23)
2. Build identifier: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Firefox/31.0
3. N/A
4. N/A
5. N/A
6. Code follows
The important field is named "fieldToHide" which is unfortunately no longer hidden despite the "hidden" flag set to true. This has led to many "hidden" fields appearing on my application. The latest build (10.0p Built 2014-10-22) has this bug and so does the v9.1p_2014-07-23/Pro Deployment (built 2014-07-23) which is my production deployment.
Navigate to the following link which is the Hands on demo of SmartClient (currently running 10.0p Built 2014-10-22)
DataBinding --> Validation --> Customized Binding (http://www.smartclient.com/#validationFieldBinding)
Under the "users.dx.xml" tab, paste in
Code:
<DataSource ID="users"> <fields> <field name="fieldToHide" title="Field to hide" type="text" required="true" length="50"/> <field name="firstName" title="First Name" type="text" required="true" length="50"/> <field name="lastName" title="Last Name" type="text" required="true" length="50"/> <field name="email" title="Email" type="text" required="true" length="100"> <validators> <validator type="regexp" expression="^([a-zA-Z0-9_.\-+])+@(([a-zA-Z0-9\-])+\.)+[a-zA-Z0-9]{2,4}$"/> </validators> </field> <field name="password" title="Password" type="password" required="true" length="20"/> </fields> </DataSource>
Code:
isc.DynamicForm.create({ ID: "boundForm", colWidths: [100, 200], dataSource: "users", useAllDataSourceFields: true, fields: [ {name: "fieldToHide",title : "Overriden title", hidden: true}, {type:"header", defaultValue:"Registration Form"}, {name: "password"}, {name: "password2", title: "Password Again", type: "password", required: true, length: 20, validators: [{ type: "matchesField", otherField: "password", errorMessage: "Passwords do not match" }] }, {name: "acceptTerms", title: "I accept the terms of use.", type: "checkbox", width:150, defaultValue:false, validators:[{ type:"custom", condition:"return value == true", errorMessage:"You must accept the terms of use to continue" }] }, {name: "validateBtn", title: "Validate", type: "button", click: "form.validate()"} ], values : { firstName: "Bob", email: "bob@.com", password: "sekrit", password2: "fatfinger" } });
I would need the fix in SmartClient Version: v9.1p_2014-07-23/Pro Deployment (built 2014-07-23)
Comment