Any way to have field error msg pop out like Fancybox?
Last Post 11-28-2012 12:38 PM by Ryan Bakerink. 5 Replies.
AddThis - Bookmarking and Sharing Button
Author Messages
CynthinaUser is Offline
wading in the water
wading in the water
Posts:21
Avatar

--
11-24-2012 04:33 PM
    Maybe I missed the option to do that...have not found it documentatio but I am hoping there is a way to do that. 

    Your help would be greatly appreciated.
    Ryan BakerinkUser is Offline
    river guide
    river guide
    Posts:1900
    Avatar

    --
    11-26-2012 05:29 AM
    Hello Cynthina,

    Fancybox seems to use jQuery, not sure if you can map this to the validation controls on the Dynamic Form.

    Can you provide me a URL to the specific example that you're trying to implement?

    Thanks,

    Ryan
    CynthinaUser is Offline
    wading in the water
    wading in the water
    Posts:21
    Avatar

    --
    11-26-2012 01:08 PM
    Thank you for responding. I have a form that is pretty complex and/or has a lot of fields --- I would like it if I could put the summary of invalid entries not at the top or bottom but in a JQuery Box (Currently have it set up for my other modules when needed.)

    It is a way to put it a JQuery Box or have the format in the CSS Style sheet area to do that? The URL is....http://www.adventurecaravans.com.dn...Step2.aspx

    Thank you!
    Ryan BakerinkUser is Offline
    river guide
    river guide
    Posts:1900
    Avatar

    --
    11-27-2012 07:00 AM
    Hello Cynthina,

    You should be able to pop these validation messages into a jQuery box without an issue. For instance, the validation summary for required fields are stored inside of a DIV tag with an ID of:
    dnn_ctr897_DynamicForms_ValidationSummary1

    So this enables you to use JavaScript to obtain the Validation text based on which validations failed on the form.

    Form instance, load the page with your form on it, click submit without providing any information, you'll see all of the Validation messages "Please provide a FirstName, etc...".

    All of the validation messages are stored in the DIV above. You can use JavaScript to assign all of the HTML in this DIV:

    document.getElementById('dnn_ctr897_DynamicForms_ValidationSummary1').innerHTML;

    So the JavaScript above is what you would feed into a jQuery box. Then you could hide the validation summary by going to Module Configuration -> Validation Configuration -> Hide Validation Summary(Check this checkbox).

    Let me know if this makes sense.

    Thanks,

    Ryan

    CynthinaUser is Offline
    wading in the water
    wading in the water
    Posts:21
    Avatar

    --
    11-27-2012 08:17 AM
    Yes --- that is awesome!  thank you!
    Ryan BakerinkUser is Offline
    river guide
    river guide
    Posts:1900
    Avatar

    --
    11-28-2012 12:38 PM
    You're more than welcome.

    Let us know if you have any questions.

    -Ryan


    ---
  • 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