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!

Make a field required base on another fields response?
Last Post 12-07-2011 07:53 AM by psanders16. 2 Replies.
AddThis - Bookmarking and Sharing Button Printer Friendly
  •  
  •  
  •  
  •  
  •  
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages Not Resolved
psanders16User is Offline
Posts:5
Avatar

--
12-04-2011 06:42 PM

    I have been trying to find a way to make the response I get back from a radio button determine if another field is required.

    For instance if I choose strongly disagree on a radio button with 4 options can I make it so that they have to fill in text area field?


     

    Chad NashUser is Offline
    Posts:5260
    Avatar

    --
    12-06-2011 08:31 PM
    Hi... You would be able to do this but it might involve using the "SQL Validation" option and/or a client side event to get this done. I have helped a client do something similar before though so I know it can be done. If you end up needing to have a member of our team assist (these are items not covered under our standard support as it involves custom SQL / JavaScript) then you can pick up Premium Support at http://www.datasprings.com/PremiumSupport. Or, depending on your priority maybe another community member has some input that might be helpful.

    Thanks!

    -Chad
    psanders16User is Offline
    Posts:5
    Avatar

    --
    12-07-2011 07:53 AM
    My initial plan was to use a hidden field and make it validate based on what was checked on the radio buttons.
    I tried to get the values of the radio buttons using the javascript from the library provided by Dynamic Forms namely the funcRadioCalc function.

    It seemed like it would work from reading your example 20 from your site, but it would allways error with no object found when calling funcRadioCalc($(Plans_FieldID))).

    I did a little more digging and it turns out that the $(Plans_Field) wasn't returning the correct name of radio group, it was using _ instead of $ for the part of the radio button name.

    dnn_ctr465_DynamicForms_Responses_ca2433c9-0105-40db-9c10-fda97a9b1798
    (this is what was passed when using $(Plans_Field) )

    vs

    dnn$ctr465$DynamicForms$Responses_ca2433c9-0105-40db-9c10-fda97a9b1798
    (This is what radio button group was using for name)

    So I changed the function per below;


    
    
    /***********************************************
    * This function call is used to return the value of a radio button. This function can be called for using calculations with radio buttons
    * Example use: funcRadioCalc($(ShortFieldName_FieldID))
    ***********************************************/
    
    function  funcRadioCalc(RadioName)
    
     {
    var str=RadioName;
    var strlen=str.length;
    var str1=str.substring(0,str.indexOf("Responses"));
    var str2=str.substring(str.indexOf("Responses"),strlen);
    str1=str1.replace(/_/gi, "$");
    str=str1.concat(str2); 
    var chkList1= document.getElementById (str);
    var arrayOfCheckBoxes= chkList1.getElementsByTagName("input");
    for(var i=0;i<arrayOfCheckBoxes.length;i++)
    {
    
    if (arrayOfCheckBoxes[i].checked) {
    return arrayOfCheckBoxes[i].value;
    }
      }
    }
     


    This fixed the issue with function not working correctly.

    I still think it would be possible to do what I was wanting to do with javascript , a hidden required field and validate it with something like a 0 or 1 for the value changed via javascript.

    Not sure if this above fix to the javascript would work for anyone else that might be having the problem or is this issue fixed in a newer release?

    We have release Dynamic Forms Version: 4.0.10.36827.
    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