Elxis CMS Forum

Extensions => Bots and plugins => Topic started by: bledi on February 25, 2020, 15:17:54

Title: Anyform plugin Datepicker
Post by: bledi on February 25, 2020, 15:17:54
Hi, after adding the sample anyform plugin i see that when i put the mouse over the datepicker it comes up an icon which looks like not possible, but actually it is possible to select the date. ( see attached).
I see the same issue in the administrator section, article page, Date & author section. putting the mouse above the datepicker is the same icon.
itravel template, elxis 5


Title: Re: Anyform plugin Datepicker
Post by: webgift on February 26, 2020, 17:27:52
Have you changed or modified your mouse cursor's theme?
Title: Re: Anyform plugin Datepicker
Post by: bledi on February 26, 2020, 18:31:55
No, did not changed anything.
Firstly it happened with my old website (aurora, elxis 5) after datahell made a fix for the change of the date in the article.
this topic: https://forum.elxis.org/index.php?topic=9047.msg57547#msg57547
And a few days ago i installed a new website in a different server (itravel, elxis 5) and it is the same problem.
But as i see now it is happening only with google chrome. Maybe you can test.
Title: Re: Anyform plugin Datepicker
Post by: webgift on February 27, 2020, 17:32:28
Don't understand!
If you face the same issue for your new website as solved earlier,
please follow the link [1] as quoted below and repeat the process as
@datahell wrote there analytically.

If you see different mouse icon than the normal one in data field of
anyform extension then please send me access in PM to see it directly.
I was unable to reproduce the issue you mentioned. Firefox and Chrome
tested.

[1]: https://forum.elxis.org/index.php?topic=9047.msg57546#msg57546
Title: Re: Anyform plugin Datepicker
Post by: datahell on February 29, 2020, 10:49:25
It is a Chrome specific bug which has been solved in newer Elxis versions (fixed on April 3, 2019). However some third party extensions might have the older datetime picker library built-in without the Elxis fix. In Elxis 5.1 (not yet released) the datetime picker has been updated more. Plugin Anyform uses the Elxis default datetime picker so if you have the right Elxis version should work fine.

Solution: Make sure you have the latest Elxis 5.0 release installed (rev 2316).
Title: Re: Anyform plugin Datepicker
Post by: bledi on February 29, 2020, 12:16:44
Hello!
I just installed Elxis in a new website, just one week before.
Not any amendment yet. Can i send PM to have a quick look?
Title: Re: Anyform plugin Datepicker
Post by: webgift on February 29, 2020, 13:03:28
I have already updated @datahell for Anyform style and datapicker issue.
I thought that we might have a bug or something like that  :o
Title: Re: Anyform plugin Datepicker
Post by: datahell on March 02, 2020, 11:07:39
Just checked. I don't see any problem on Elxis 5.1 (I didn't checked Elxis 5.0). Anyform datetime picker works fine on Firefox, Chrome and MS Edge. Seeing the "forbidden" icon is normal as the element is read only and I, on purpose, chose to display that icon. However when you click on the date element, regardless the icon, you should see the datetime picker window. This is how it should work.

The datetimepicker has been updated in Elxis 5.1. I attach you the updated version. Update your installation by replacing all files with the new ones under the following path:
includes/js/datetimepicker/

Tell me if the problem is solved.

Note 1: The style selection in AnyForm, as noted in parameters, works only on Elxis 4.x sites. On Elxis 5.x it is deprecated as Elxis 5.x has much better form styling.

Note 2: Elxis (and therefor Anyform) can display a date selection input element in many ways. Alternative to datetime picker you can select to use the datenative element.
Sample code for Anyform XML form:
<item type="datenative" name="date2" label="DATE" required="1" default="" tip="" />

All date/time elements Elxis supports as methods of Elxis 5 form library: addDateNative, addDatetimeNative, addDatetimelocal, addTimeNative, addMonthNative, addDate, addDatetime, addTime, addTimezone
To use them on AnyForm remove the "add" prefix and convert them to lowercase. For example from addDatetimeNative to datetimenative
Title: Re: Anyform plugin Datepicker
Post by: bledi on March 02, 2020, 12:56:20
Thanks for all your informations,  today i left home on a trip, as soon as I return I will let you know for the results.
Title: Re: Anyform plugin Datepicker
Post by: webgift on March 02, 2020, 17:54:46
Great!
Don't forget to change the access details you've sent me for your security.