EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: reems on August 09, 2013, 01:07:44 AM



Title: validation message jumps away
Post by: reems on August 09, 2013, 01:07:44 AM
Hello,

I have (in a window) a form with tabs. Opening the form a message is shown next to field that a field is required. But when I click on the second tab the message jumps out of the form to the upper left corner of the browser window. See the attached screen image. When I go back to the first tab the message jumps back to the field.

When i close the window with the form while the validationmessage is still in the upper left corner it stays there.

I have no idea how to solve this.
Anyone?

Thanks,
Reems


Title: Re: validation message jumps away
Post by: hjzhbb7758 on August 09, 2013, 02:10:00 AM
i have this Problem


Title: Re: validation message jumps away
Post by: stworthy on August 09, 2013, 04:38:37 AM
Providing an example to demonstrate this issue may be more appropriate.


Title: Re: validation message jumps away
Post by: stworthy on August 09, 2013, 09:05:12 AM
Be sure to call form's methods after window is opened. In your demo link http://test.reems.develop01.goldenvalue.nl/realplan13.php, please use the code below to open your window.
Code:
function newrec()
{
  $('#formtabs').tabs('select',0);
  $('#w').window('open');
  $("#rpf").form('reset');  // the reset method should be called after the window is opened
  $("#rpf :input").attr("disabled", false);                   
  $('#select1').hide();
  $('#submit1').show();           
}


Title: Re: validation message jumps away
Post by: reems on August 09, 2013, 11:11:41 AM
Thanks stworthy. That did the trick!

Reems