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!

Show/Hide Submit Button Error
Last Post 06-24-2013 06:13 AM by Ryan Bakerink. 1 Replies.
AddThis - Bookmarking and Sharing Button Printer Friendly
  •  
  •  
  •  
  •  
  •  
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
Mark HarleUser is Offline
going with the flow
going with the flow
Posts:45
Avatar

--
06-22-2013 11:41 AM
    Hi -
    I am trying to dynamically show/hide the Submit button, however, I cannot get it to work correctly. Here's what I've done:
    • I have a hidden form called AuthenticationResults that calculates a default value of either 1 or 0. If the value is 1, the Submit button should display, otherwise it should remain hidden.
    • I have ticked on the 'Initially hide the form submission button'.
    • I added the client side event code to the AuthenticationResults field (see attached txt file for the code.  dnn_ctr82284_DynamicForms_lnkSave is the id of the Submit button).
    • The Submit button, however, remain hidden for a value of both 1 and 0. And I can tell from the hidden field Control Panel that the AuthenticationResults field is defaulting to 1, which should show the submit button.

    Please advise, and thank you in advance.

    BTW, my DynamicForms / DNN version is Ver:4.10.0.5601 / 6.2.6.


    showHideSubmitButtonCode.zip

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

    --
    06-24-2013 06:13 AM
    Hello Mark,

    You may want to enable a tool such as FireBug or Google Inspector to see if there are any JavaScript errors being caught.

    Anytime you receive unexpected results, this is typically related to a logical or syntactical error in your script.

    Just to be sure, I would create a function like this:


    function HideShowButton(AuthResultsFieldID)
    {

    if ( document.getElementById(AuthResultsFieldID).value == '1' )
    {
    document.getElementById('dnn_ctr82284_DynamicForms_lnkSave').style.display = '';
    }
    else
    {
    document.getElementById('dnn_ctr82284_DynamicForms_lnkSave').style.display = 'none';
    }

    }


    Upload this function to your Custom JavaScript file of your Dynamic Form, or include this function somewhere on the page using a script injecting module.

    The function call will look like this:

    HideShowButton( $(AuthenticationResults_FieldID) );


    Be sure to completely refresh the page after uploading these changes(CTRL + F5).

    Let me know if you have any questions.

    Thanks,

    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