Great Ideas. Always Flowing.

We are not happy until you are happy. Client satisfaction guaranteed. Whatever your needs and requirements, we have the skills and resources for the job!

Quick login...


Or... now make it easy with Facebook Integration
Connect via Facebook



Top Sellers

Frustrated over the lack of customization for your user's registration fields? Dynamically setup your DNN Portal with custom registration fields, layout, questions, and other core integration options......

Ultra Video Gallery is a brother product of Ultra Media Gallery, UVG allows you to upload videos in various format and automatically encode them to flv or H264 format, you also can add videos from internet or record live videos from your webcam.

Build high performance, completely customizable data-entry forms and views driven by your DNN and external databases. New built-in tools make it a snap to quickly create data entry forms, data views, and even database tables. Plus, add your own HTML, CSS, Javascript, SQL commands, stored procedures,

The most advanced DotNetNuke shopping cart on the planet. Easy to use e-Commerce, Secure Shopping Cart Software and SEO friendly. B2C / B2B Ecommerce Sites.

One stop solution for events calendar and events registration! FREE DOWNLOAD is available now!

How to get rid of this height value?
Last Post 08-13-2012 05:10 AM by Ryan Bakerink. 19 Replies.
AddThis - Bookmarking and Sharing Button Printer Friendly
  •  
  •  
  •  
  •  
  •  
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
Michael ManUser is Offline
river guide
river guide
Posts:152
Avatar

--
08-01-2012 10:59 AM
    I am trying to match the look and feel of my dropdown menu as my input fields. But I have two dropdown menu: Country and Your Group.

    The Your Group is working just fine but why the dropdown menu for Country is so small? Pleas see attachment registration1.jpg



    I use firefox firebug and I see that there is a height: 20px element int he style. How do I remove that height: 20px? (please see attachment registration2.jpg)




    Thanks
    CandaceUser is Offline
    river guide
    river guide
    Posts:2431
    Avatar

    --
    08-01-2012 12:07 PM
    Hi Michael,

    You will have to go to Module Configuration and adjust the Stylesheet for this field type. For consistency, though, I would also use a combo box to give your country options (instead of the Country field type). You can populate it by adding something like this to the SQL-driven default value:

    Select ‘ – Please Select –‘ as questionoption,’ –1‘ as questionoptionvalue
    Union All
    select Text as QuestionOption, Text as QuestionOptionValue from Lists where ListName= 'Country'
    Order By QuestionOption

    You might need to adjust to Order by Text and/or add your object qualifier in the statement.


    Thanks,
    Candace
    Michael ManUser is Offline
    river guide
    river guide
    Posts:152
    Avatar

    --
    08-01-2012 12:16 PM
    Candace,

    Do you know how to select United States as a default selected option if I use your code above?
    Michael ManUser is Offline
    river guide
    river guide
    Posts:152
    Avatar

    --
    08-01-2012 12:27 PM
    Posted By Candace on 08-01-2012 02:07 PM
    Hi Michael,

    You will have to go to Module Configuration and adjust the Stylesheet for this field type. For consistency, though, I would also use a combo box to give your country options (instead of the Country field type). You can populate it by adding something like this to the SQL-driven default value:

    Select ‘ – Please Select –‘ as questionoption,’ –1‘ as questionoptionvalue
    Union All
    select Text as QuestionOption, Text as QuestionOptionValue from Lists where ListName= 'Country'
    Order By QuestionOption

    You might need to adjust to Order by Text and/or add your object qualifier in the statement.


    Thanks,
    Candace

    Also by doing this way, I lose the dynamic relationship between Country and Region field. How do I using this method and it change the region field based on the selection of the country?

    Ryan BakerinkUser is Offline
    river guide
    river guide
    Posts:1900
    Avatar

    --
    08-02-2012 04:56 AM
    Hello Michael,

    When using SQL Driven options for a combo box, you can't really set a default. Here's what you should do:

    1.) Add a combo box - Country SQL Driven
    2.) Add a combo box - States SQL Driven
    3.) Question Event that fires a post back. This question event doesn't really need to do anything other than invoke a postback.

    This could be the SQL for your Country Combo Box:
    ------------------------------------------------------------------------------
    Select ' – Please Select – ' as questionoption, '–1' as questionoptionvalue
    UNION ALL
    select Text as QuestionOption, Text as QuestionOptionValue from Lists where ListName= 'Country'
    AND Text = 'United States'
    UNION ALL
    select Text as QuestionOption, Text as QuestionOptionValue from Lists where ListName= 'Country'
    AND Text <> 'United States'
    ------------------------------------------------------------------------------

    This could be the SQL for your States Combo Box:
    ------------------------------------------------------------------------------
    IF '$(CountryComboShortName)' = 'United States'
    BEGIN
    Select '– Please Select –' as QuestionOption, '–1' as QuestionOptionValue
    UNION ALL
    select Text as QuestionOption, Text as QuestionOptionValue from Lists where ListName= 'Region'
    AND ParentID = 221

    END
    ELSE
    BEGIN
    Select '– Please Select –' as QuestionOption, '–1' as QuestionOptionValue
    END
    ------------------------------------------------------------------------------


    Let me know if you have any questions.

    Thanks,

    Ryan
    Michael ManUser is Offline
    river guide
    river guide
    Posts:152
    Avatar

    --
    08-03-2012 08:08 AM
    Hi Ryan,

    Thanks for your help.

    Doing your method is good but one minor problem is that if user select a country other than United States, for example: China then the State rRegioan) option is still a dropdown menu and user can not type in the text field because China has no state to select.

    If I use Option Country and Region, I am able to do this task but I am stuck at the height of the Dropdown menu

    Any idea how to do this?
    Ryan BakerinkUser is Offline
    river guide
    river guide
    Posts:1900
    Avatar

    --
    08-06-2012 05:29 AM
    Hello Michael,

    Yes, use question events.

    If Country = United States then Show the States Combo Box.

    If Country != United States then Hide the States Combo Box.

    There is a functionality in Dynamic Forms called "Question Events". You can create one or two conditional Question Events that only fire when Country = United States or not.

    Stay away from the Country and Region question types. If you want to add customizations(Which you do) then you need to use regular Combo Box Question type. Use the SQL I provided you to achieve the same dependency that the Country and Region Question Types have.

    Let me know if you have any questions.

    Thanks,

    Ryan

    Michael ManUser is Offline
    river guide
    river guide
    Posts:152
    Avatar

    --
    08-07-2012 09:36 AM
    Ryan,

    First of all, I am very much appreciated for your effort to help me. But after so many attempts to make it work the way your described and I still could not get it to work. I don't know why.

    As I mentioned above, if the dropdown for Country is selected for country that does not have state like China, then I would like to replace the dropdown box State with an Input text field, where my users can type in. I am not so sure with your suggestion using Question Events above to do this?

    I could never imagined how BIG of this problem is when it first started only a tiny problem originally. All I wanted is to remove that height: 20px; in the country box and it will solve my entire problem.

    It seems to me that DataSprings staff does not have any solution how and where to remove that height:20px in a dropdown menu.

    Please help

    Thanks
    Ryan BakerinkUser is Offline
    river guide
    river guide
    Posts:1900
    Avatar

    --
    08-07-2012 09:59 AM
    Hello Michael,

    Funny for you to say that, actually I'm the Sr. Web Developer at Data Springs.

    I know this seems like a small issue, perhaps you can setup an example on our test environment www.betasprings.com

    host / dnnhost

    Once you have a page up and mimicking your scenario please copy/paste the URL here so I can take a look and provide a working solution for you.

    Let me know if you have any questions.

    Thanks,

    Ryan

    Michael ManUser is Offline
    river guide
    river guide
    Posts:152
    Avatar

    --
    08-07-2012 10:25 AM
    Ryan,

    Thanks again for your quick response. I have setup a demo form and here is the link http://www.betasprings.com/DynRegis...fault.aspx

    You can see that if I select any country other than US then the State field is still a dropdown menu. This is not good. Need to replace it with an input text field so user can type in.
    Ryan BakerinkUser is Offline
    river guide
    river guide
    Posts:1900
    Avatar

    --
    08-08-2012 06:54 AM
    Thank you for providing me the link:
    http://www.betasprings.com/DynRegis...fault.aspx

    You'll see that the Dynamic Registration States combo box is now working. Please let me know if the dependency is working as you'd imagined.

    The dependency is all within the States Combo Box.

    Let me know if you have any questions.

    Thanks,

    Ryan
    Michael ManUser is Offline
    river guide
    river guide
    Posts:152
    Avatar

    --
    08-08-2012 10:56 AM
    Ryan,

    From that demo, I can see that the dependency for United States is working. BUT what if you select another country like China, which has no states. Then what do you select in the State field?

    I like it when I select any country besides United State, the States Dropmenu box will be replaced with a input text field so I can type in the text.

    See picture below, if I select Vietnam as my country. Then how do I change that States to an input text field where I can type in the text


    Ryan BakerinkUser is Offline
    river guide
    river guide
    Posts:1900
    Avatar

    --
    08-08-2012 11:44 AM
    Hello Michael,

    Question Events won't be able to accomplish this since we can't use a Not Equals condition.

    You'll need to use JavaScript to hide and show the appropriate fields.

    I provided the JAvaScript under Initial JavaScript.

    This JavaScript needs to be in the Checkbox and Country "Client Side" section under Advanced Field Options

    Just to note, the JavaScript is referencing ID"s on this Dynamic Registration module. The Id's on your form will be much different.

    Let me know if you have any questions.

    Thanks,

    Ryan
    Michael ManUser is Offline
    river guide
    river guide
    Posts:152
    Avatar

    --
    08-08-2012 12:08 PM
    Hi Ryan,

    Did you added the javascript to this demo? http://www.betasprings.com/DynRegis...fault.aspx

    It seems that when I select any country besides the United States, the States dropdown menu does not change. Am I missing something?

    One question: If I use the Country and Region that comes with Dynamic Registration module, this accomplishes this task easily. You can see that if I choose anything else besides United States then it changes the Region to input text field. Why can we do this just like country and region?
    Ryan BakerinkUser is Offline
    river guide
    river guide
    Posts:1900
    Avatar

    --
    08-08-2012 12:17 PM
    Hello Michael,

    I was adding in JavaScript that would hide and show the State or Region Textbox Respectively. It seems that there's an issue with Dynamic Registration and the version of DNN on our test environment in which is preventing my JavaScript from working.

    However I'm certain that you can take the JavaScript I provided and plug it into your own example.

    If Country and Region question types do exactly what you want then why are we discussing this? LOL.

    I thought you were having an issue with the height of your controls? Have you tried styling these fields to give them the look you want?

    -Ryan

    Michael ManUser is Offline
    river guide
    river guide
    Posts:152
    Avatar

    --
    08-08-2012 12:31 PM
    I thought you were having an issue with the height of your controls? Have you tried styling these fields to give them the look you want?

    -Ryan


    That is what I've been trying to do all along and do not know how to make my CSS style to work with dropdown menu (select) type
    Michael ManUser is Offline
    river guide
    river guide
    Posts:152
    Avatar

    --
    08-08-2012 12:40 PM
    Do you have an email I can send you my link and you can tell me why I am not able to to style on my select field?

    Thanks
    Ryan BakerinkUser is Offline
    river guide
    river guide
    Posts:1900
    Avatar

    --
    08-08-2012 01:11 PM
    Yes you can email me directly at rbakerink (at) datasprings (dot) com.

    Let me know if you have any questions.

    Thanks,

    Ryan
    Michael ManUser is Offline
    river guide
    river guide
    Posts:152
    Avatar

    --
    08-09-2012 11:11 AM
    This issue has been solved by a professional staff at DataSprings, Ryan. He took the time to communicate with me via email and got it worked out well.

    He actually added style to my form and it solved it

    Thanks Ryan
    Ryan BakerinkUser is Offline
    river guide
    river guide
    Posts:1900
    Avatar

    --
    08-13-2012 05:10 AM
    You're more than welcome Michael, I'm glad that I could be of assistance to you.

    -Ryan
    You are not authorized to post a reply.


     
     

    Join our mailing list...

    Get current news and events the easy way
    Subscribe Me

    Recent Blogs...

     
    Copyright 2005 - 2011 by Data Springs, Inc.
     
  • film izle
  • 720 izle
  • film
  • sinema izle
  • film makinesi
  • T�rk�e dublaj film
  • film izle
  • film izle
  • baglan film izle
  • sinema izle
  • 1080 film izle
  • film mercegi