Hi Friends,
The start date and time is not appearing in my event vertical (as well as in global too)
I have checked the knowledge graph where I could see the start date/time and end date/time.
I could not see the sort options; I believe, there could be some date conversion issue is causing this. Can someone please help me to fix this issue, please?
1 Like
Hello Kamaraj!
I think the “invalid date” issue could be related to an incorrect field API name in your SortBy Object. For the “Event Date” sorting object, the “field” value should be “time.start” in both frontend and backend config file (See screenshot below). Hope these can help you in some way. : )
Frontend:
Backend:
@Ming_Ye: Thanks a lot for helping me.
I’m finding this issue in step 2 itself. I haven’t even configured any of the sorting values.
@Kamaraj_Mani_Nataraj Ah, I see. Maybe it could be helpful later. I’m sure an admin will solve this issue for you soon!
Best Luck!
1 Like
Hi @Kamaraj_Mani_Nataraj! I was not able to replicate the invalid date issue on my side - is this something you’re still seeing?
As for step 2, it is expected that you do not see the ability to sort on the frontend yet. You will be adding the sort options to the frontend as part of this challenge.
Please let me know of any follow-up questions as you go through this.
Sam
1 Like
Yes @Sam_Torres, I am still seeing the issue… I agree with you, as for step 2, we are just previewing the event vertical where we are going to implement the sorting features using the subsequent steps.
My point is, even at step 2 itself, I am seeing the “invalid date” instead of August 3, 2020, 11:00 AM - 3:00 PM.
When I update the preview after step 7, I am seeing the below screen…
I believe, it may be because of that invalid date error or I should have done some mistakes. I could not trace that out.
Ah, I see @Kamaraj_Mani_Nataraj! I will continue to investigate the “invalid date” issue. I haven’t been able to replicate it on my side.
I found the issue on your events vertical in step 7. Please try placing the “SortOptions” object within the "componentSettings" object. You should be able to just copy and paste the “SortOptions” to line 34 in your events.json file (make sure to double-check your commas and brackets), which will produce the following when you update live preview:
1 Like
Thank you so much, @Sam_Torres. You are a rock star.
Now I see the sort options, please refer the below image
However, still, the “Invalid Date” issue is there.