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!

Text box and hidden field default value question
Last Post 05-17-2012 08:08 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
BobWUser is Offline
new to the springs
new to the springs
Posts:4
Avatar

--
04-08-2012 04:08 PM

    I am using Dynamic Forms 3.40.50 with DNN 5.6.2

    I put 2 fields on a new page.

    field #1 - text box , with a default value that was sql driven,
    and this filled in just fine with a value of 'to'

    the sql was :
    select spec as DefaultValue
    from dbo.testspecs where specno=2

    field #2 - was a hidden field, question type of hidden field to be specific, and for default - I enter the same exact sql statement as before,
    except the where clause is where specno=1

    Then i run the page in edit mode,
    and the default value for the text box fills in,
    so far so good.

    But the hidden field, which i named hspecs,
    has nothing showing for its value.
    So I click the submit button,
    and then after what looks like a postback or page refresh or something, then all of a sudden the hidden value shows up to the right of the field name in an area called 'Hidden Fields Control Panel'

    So, 2 fields, both with a default value,
    the default value for the first one shows up on page load,
    and the default value for the second field
    does not show up on page load at all,
    but does show up with a page re-load.

    Perhaps I am missing a simple setting or something.

    I read the entire manual for Dynamic Forms,
    and was looking for information regarding hidden fields,etc,
    but i might have missed...and so I searched forums,
    and now I am posting.

    Thanks in advance for any hints, pointers, suggestions, or explanations.

    Bob

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

    --
    05-17-2012 08:08 AM
    Hello Bob,

    Sometimes hidden fields contain the appropriate values however you can't see it after a postback due to the viewstate of the page.

    Find the input ID of the hidden field that you have concerns with and use a simple alert statement on initial page load under Module Configuration -> Custom JavaScript file -> Initial JavaScript:

    alert(document.getElementById('ID_wil_be_a_long_string').value);

    Then you'll be able to find out whether the value is actually being lost or if it's a facade that is presenting trickery.

    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