I have a dataset with 2 columns and 7 rows. The first column is days of the week. The second column is quotes.
I want the text box to show Sunday’s quote every Sunday; Monday’s quote every Monday and so on.
Ideally I want the screen output to be white with a bold heading and an italic subhead.
Is there a simple way that I am missing?
I used this to get the name of today
var dayNames = new Array(“Sunday”,“Monday”,“Tuesday”,“Wednesday”,
“Thursday”,“Friday”,“Saturday”);
var now = new Day();
Then I used this to look at dataset2 called dayquotes to find the row that the name of today appears in column dow. I then want the contents of the same row in column quote to appear in textbox30.
$w( “#dataset2” ).onReady( async () => {
$w( “#dataset2” ).setFilter(wixData.filter()
.eq( “dow” , day)
.then(() => {
console.log( “quote” );
});
The collection is called dayquotescollection
The dataset is called Dayquotescollectiondataset and is dataset2
Textbox30 connects a dataset to Dayquotescollectiondataset
Text connects to quotes(rich text)
Thankyou