This topic is locked
[SOLVED]

 $message location

2/22/2011 12:54:10 PM
PHPRunner General questions
P
procheck author

Hi,
I'm validating a number of fields in the BeforeEdit event but the error message always appears after the first field. Is there a way to place the $message after the field with the error?
Thanks
Al

Sergey Kornilov admin 2/22/2011

You can drag the yellow 'message' box in Visual Editor where you need it to appear.

P
procheck author 2/22/2011

It was located at the bottom. I tried moving it to the top but the message still appears under the first field. This is a page where I've rearranged the fields. This is for inline edit only. Is there any field that contains a value that controls the actual location?

Sergey Kornilov admin 2/22/2011

I see what you saying. Inline Edit is a different beast and it won't work this way.
My suggestion is to validate each field separately. You can use Javascript validation plugins for this purpose. Error message will be shown next to the field that didn't pass validation.

P
procheck author 2/22/2011

Ok thanks
Al