This article explains how you can display a calendar widget for an input text prompt using the Oracle Web SDK. The solution uses a resource bundle entry to return HTML markup for the calendar. The Oracle Web SDK JavaScript API is used to send the selected date information back to the skill to update the underlying variable. The message sent after selecting a date is passed as a postback message that contains the name and value for a variable to update as well as the action to transition to.
Disclaimer: The goal of this article is to showcase the use of HTML widgets in the content of a bot response. If you put this code into production, make sure you implement support for channels other than Web (if e.g. your bot should also run on other channels) as well as to handle when users type a message instead of using the displayed calendar widget. Read the complete article here.
For regular information become a member in the Developer Partner Community please register here.
Blog
Twitter
LinkedIn
Facebook
Meetups
Technorati Tags: PaaS,Cloud,Middleware Update,WebLogic, WebLogic