Hi everyone, I have a very specific question. I ha...
# suitecommerce
r
Hi everyone, I have a very specific question. I have added a "Date" type Transaction Body Field to a Sales Form. When I got to choose the Date, it pop-ups a calendar. What I want to know, if there's a way in which the calendar (populated by Netsuite) can show me only the "Available" dates, and it grays out the dates that are not available, according to a script or so.
s
Well, if you can figure out a way of getting 'available dates' into a JSON format and sending it to the frontend, there's probably a way of doing it with the built-in Bootstrap (I think) calendar.
r
Yes, I have no problem with creating a JSON list of "available dates". My question is, how could I modify Bootstrap built in calendar in order to print those dates or gray out the "occupied dates".
s
Well I believe it has a data API right?
datesDisabled
looks promisng
r
Great, thank you, let me take a look at it! 🙂
What I've found is reasonable for the website. But I want this to work in the exact same way in the NetSuite Back-end Sales Form. Do you if it's possible to work with the Date-picker core library. Because I haven't found a way to do it.
s
I don't know what library it uses so I can't say
Remember that all of this needs backend validation too 🙂
r
message has been deleted
s
yah but I have no idea what library powers it or if it has an API
r
Mhhhm ok ok, thanks, I need to figure this out+