Recently Viewed...
To help you navigate to pages you most recently visited, select from the links below.
Product Forums
Sharepoint Forums
Newsletter
Dynamic Forms Demonstrations
Page Tags
DNN Modules
SnowCovered Top Sellers

One stop solution for events calendar and events registration! Demo site available for free trial.

'Relationship Building' and 'Communication' are two essential nuts and bolts for a business to prosper. This module allows you to bridge both of these and easily generate continuous awareness of your web site, products and services. Your prospects and customers will greatly appreciate this featur

Version 5 of the perennial best-selling tool for creating data-based solutions in DNN without custom programming. This version focuses on greater flexibility, expandability, and ease-of-use.

Ultra Video Gallery is a brother product of Ultra Media Gallery, UVG allows you to add videos in various format and automatically convert them to flv format, you also can add videos from embed code and play them in our integrated flash video player.

The award winning discussion forum and community solution for DotNetNuke is now even better. When you need to build the best community site, you need the best module, Active Forums!

Powerful, Ajax Enabled, Easy to Use. Document Management has never been better. Open-DocumentLibrary allows DotNetNuke users to share and manage documents in a flexible, intelligent way, offering granular control over Folder and Document access.

Gloss is the first ALL COLORS! skin, featuring a powerful XML-based flash and being 100% W3C CSS XHMTL1.0 compliant. Tune it yourself on the fly, changing colors, backgrounds, containers, text color and size, width and more! Brilliant!Available for DNN4 and DNN5

ALL NEW ! - Minimalist includes skin packs in 12 great colors. Each color has Flat, Gradient and Glass versions. Feature rich XML Flash header, perfect for just about any purpose. 9 Different menu options in each skin pack; 3 horizontal menus, 3 vertical menus and 3 all-new Twin level menus . . .

A 16-in-1 dnn module.Powerful yet easy to use. Capable of producing a multitude of functions including:Image rotator/Numeric rotator/ Mp3 player/Wmv player/ Flash video player /YouTube video player/Multimedia player / Text-to-speech podcast / Flipping book player/Banner topic player/Silverlight albu

Ultra Media Gallery is the most popular photo gallery and media gallery solution for DotNetNuke, UMG offers 10 different flash player to browse your gallery with completely different user interface experience.

    |   Register   |   Friday, January 09, 2009   
Data Springs Product Forums...
Subject: Assigning Role using hidden field
Prev Next
You are not authorized to post a reply.

Author Messages
Ashok
Posts:5
skipping stones
skipping stones

11/22/2006 5:40 AM  
Hi,

We have created two registration forms in our website. In First form when user submits it User automatically assigned as registered user. In the second form , when user fills it uses should get assigned as Other role (ex. Premium Role which we created in DNN). So we have created event using Dotnetnuke Role Type. We do not want Role to assign depending on the user response so we created hidden fields (in dynamic filed we selected hidden field) and trying to assign the user as Premium role when the second forms gets filled. But it is not working.

Please let me know how do i assign role without using User Response option.

Please do reply me as soon as possible Very Urgent.

Thanks
Ashok Naidu
Chad
Posts:2389
river guide
river guide

11/22/2006 11:34 AM  
Ashok,

Hi. Well it should work as you describe as long as you are populating the hidden field with a response (probably with the pass to querystring/pull from querystring). To test I would make the field a textbox instead of hidden field for testing purposes only and after testing you can change it back to a hidden field.

So... What is the value of the hidden field and is it pre-filled, how does it get populated etc... It does have to be based on the 'users response' but if its a hidden field they will not know what they responded to so that should be a solution.
Ashok
Posts:5
skipping stones
skipping stones

11/22/2006 8:49 PM  

Thanks Chad,

This time i created a textbox with default value and then converted it into hidden field. Then i filled the form and user is now becoming premium users role.

We also want to give the validation period for these premium user role i.e for 6 months user should have this premium role after that it should automatically get expire. Is this requirement is possible using dynamic registration form , if yes then what setting should be set for that OR We should manually delete the users role after 6 months.

Please let me know,

Thanks
Ashok Naidu

Chad
Posts:2389
river guide
river guide

11/29/2006 2:51 PM  
Ashok,

Hi. Currently with the Role Event you can't specify an expiration date but that is a great enhancement idea/request and I see a value in adding that.

For now, what you could do is create a Dynamic SQL Event. Just make sure the SQL Event is setup after the role event so that it will execute after the user has the role. The SQL Event would be something like this.

Update UserRoles
Set ExpiryDate = (Select GetDate() + 180)
Where RoleID =3 AND UserID = $(UserID)

This would set the expiry date to be 180 days where the RoleID is 3 (You would want to find your roleID and replace it with this query.). The $(UserID) is a parameter that is valid with any SQL Event for Dynamic Registration.

That should do the trick.

-Chad


You are not authorized to post a reply.



ActiveForums 3.7

Copyright 2005 - 2009 by Data Springs, Inc.
Terms Of Use | Privacy Statement