Forums

Position of the JS validation message

Mushr00m 04 Aug, 2011
Hi !

Congratulations for the V4 ! Really great features ;-)

I just wanted to now if it's possible to change the place of the validation message (For example : this field is required) ? Currently the "bubble" is on the top right and I need it on the top left...

Thanks for the help
GreyHead 05 Aug, 2011
Hi Mushr00m,

There's a datepicker options positionOffset{x:0, y:0} that you can use:

Allows you to tweak the position at which the datepicker appears, relative to the input element. Formatted as an object with x and y properties. Values can be negative.



Use the Custom Datepicker action in RC1.9+ to set the options.

Bob
Mushr00m 05 Aug, 2011
Thanks for your quick reply but I don't understand why you talk about datepicker when I want to move the validation bubble ?
GreyHead 05 Aug, 2011
Hi Mushr00m ,

Errr . . . answering before coffee in the morning . . .

The equivalent for validation is the tipsPosition option which needs to be set to left instead of the default right.

The easiest way to set the validation options is probably to use my Show HTML [GH] action which has a box for them. You can get it here.

Bob
Mushr00m 05 Aug, 2011
Yes the coffee it's important to have good start 😀

I tried to download your document but the Zip is corrupt...

There is no way to modify it directly from the form options ?

Thanks
GreyHead 05 Aug, 2011
Hi mushr00m,

I checked the file and it is OK. Are you on a Mac? It seems they can't handle zip files correctly when there is an included folder :-( I'll PM you the files.

There is no other easy way that I know of to set the validation options.

Bob
Mushr00m 05 Aug, 2011
Hi,

Yes I'm on a Mac but I never add this kind of issues with any zip files in the past. Anyway, thank you to send them by PM, I've download them and gonna try this :wink:

When I said "an easy way" it will be like, finding the line where the JS add the absolute position and directly modifying it...

I try your solution and give you a feedback.

Thanks
GreyHead 05 Aug, 2011
Hi Mushr00m,

If you can find what the problem is with the zip files please let me know. They work perfectly in every PC unzipper I haver here and the only failures are on Macs. I found some messages about folder problems in the Apple forums that seemed to relate but they didn't offer any fix :-(

Bob
Mushr00m 05 Aug, 2011
Sorry but I really have no idea about this problem... I will ask to my other Mac users friends if they do...

Just a last question, I don't know how to insert the option "tipsPosition", there is no doc about how to write them ? I see this in the Show_HTML_GH event "You can add options to configure the Formcheck validation here. See the Formcheck documents for valid options." but can't find this documents...

Thank you
GreyHead 06 Aug, 2011
Hi mushr00m,

The FormCheck documents are here. There are a lot of options . . .

Bob
Mushr00m 08 Aug, 2011
Thanks for the doc !

I tried this :
tipsPosition:'left';
tipsPosition:'left'
tipsPosition:left

Nothing work, what's form need to be enter in your field to be exact ?
Max_admin 13 Aug, 2011
Hi Mushr00m,

I will try to add this setting along with others to the default form options and test it later today, will be available in the new V4RC2.0 hopefully in a few days.

Regards,
Max
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
This topic is locked and no more replies can be posted.