Skip to main content
Patrick Chetot (PROS) a publié du contenu dans * Lightning Now! *

Hi All,

 

While building custom Lightning components to migrate our Classic VF pages, we encounter issues regarding date fields :

 

The <force:InputField type="date" tag does not come with a date picker. Is this scheduled in future releases ?

 

Then, playing around with <ui:inputDate displayDatePicker="true" did not bring a suitable solution either as the look&feel of both the input field and the calendar does not match the Lightning look&feel ( at least the style we  see when editing a record ).

The calendar icon is displayed on the line next to the input field and the calendar is just ugly.

 

We have a VF page called by a SF1/Lightning quick action and embedding a custom Lightning component with 3 input fields (not record custom fields)

 

After "inserting" the app.css used by the "native" Lightning application (the one referenced in page header while editing a record) in the header of our parent VF page embedding the Lightning component, things are getting better : The calendar icon is placed correctly on the right of the input field and the calendar looks better (but still not the same as the "standard" one)

 

The app.ccs has been inserted using Jquery and a hard-coded Href, which is obviously not a viable solution.

Any attempt to work around this has not been successful (jquery libray not usable in components because blocked by data-locker + other issues). 

 

Most of the solutions given in forums talk about developing a custom calendar. That might be however a waste of time as Salesforce could come with a standard" date picker in fututre releases. 

 

Can anyone provide a solution to solve this issue? Standard solution, workaround or any other technique approved by security team ( changing the header of component page is not approved as far as  understood ).  

1 commentaire
0/9000