•   Mountain View 1600, CA 94043
  •   +1 650-253-0000
  •   name@example.com
     Search
 
  • Register
 
Login
InteractiveWebs
  • DNN Home
  • Services
    • -DotNetNuke Support
    • -CRM Systems
  • DNN
    • -DotNetNuke Modules
    • -Module Downloads
    • -Module Upgrade Policy
  • DNN Support
    • -Module Update News
    • -Knowledge Base
    • -License Management
    • -Invoice History
  • Module Downloads
  • Blog
  • Store
  • Contact Us
    • -About Us
SearchHome
  • 1
  • 2
  • 3
  • 4
  • 5
HomeHomeSupportSupportAdvance Login M...Advance Login M...Checkbox Profile Properties cause error with slide downCheckbox Profile Properties cause error with slide down
Previous
 
Next
New Post
8/4/2012 3:08 AM
 
User is offline John Jones
No Ranking

Joined: 4/22/2012
Posts: 1
Checkbox Profile Properties cause error with slide down  (United States) Modified By John Jones  on 8/4/2012 6:29:49 AM
Hi,

I have a custom property that I added to my user profile for 'Accepting T&Cs'.  The profile property is a checkbox (property is called AcceptTerms) but when I try and add this to the Registration template and use the Slide-down login/registration option, the module won't load.  The HTML that I added to the template was pretty simple (below).   I've added other properties without any issue - a drop-down for TimeZone worked fine (except that it even though it's a required field, it doesn't seem to fire the validation error when it's not populated).

<tr>
   <td><span id="lblTerms" class="grey">Accept Terms:span>td>
   <td>[AcceptTerms|tabindex=10]td>
tr>

Any ideas?  Thanks,
Mark

EDIT:  Here's part of the error from the DNN Event Log.  It looks like the module can't validate a checkbox as a required field even though DNN itself has no problems doing so (presumably DNN has a custom validator for requiring checkboxes to be checked).  As it is, I can't get users to agree to T&C during registration which is pretty bad.  Until this is addressed, I'll have to use the regular DNN registration page which has no issues at all forcing the user to check the box.


InnerException: Control 'AcceptTerms' referenced by the ControlToValidate property of '' cannot be validated.
FileName:
FileLineNumber: 0
FileColumnNumber: 0
Method: System.Web.UI.WebControls.BaseValidator.CheckControlValidationProperty
StackTrace:
Message: DotNetNuke.Services.Exceptions.PageLoadException: Control 'AcceptTerms' referenced by the ControlToValidate property of '' cannot be validated. ---> System.Web.HttpException: Control 'AcceptTerms' referenced by the ControlToValidate property of '' cannot be validated. at

 
New Post
8/21/2012 11:34 AM
 
User is offline DNN Module Support
1st Level Poster

Joined: 8/28/2006
Posts: 2065
Re: Checkbox Profile Properties cause error with slide down  (Australia)
We have released AdvancedLogin 45.06.30 PA.zip which will not cause error if CheckBox profile field in DNN is set as required. However due to ASP.NET limitation, the required validation on checkbox field in registration need to be validated by customized script in advancedlogin.

We can demo that script if needed. Please fill in a support request.
 
 Page 1 of 1
Previous
 
Next
HomeHomeSupportSupportAdvance Login M...Advance Login M...Checkbox Profile Properties cause error with slide downCheckbox Profile Properties cause error with slide down


Connect to us

Copyright (c) 2023 InteractiveWebs : Terms Of Use : Privacy Statement
Login Register

Need to Register? Forgot password?

Just want to login?
Copyright (c) 2023 InteractiveWebs : Terms Of Use : Privacy Statement