I implemented the code to the best of my ability, but It doesn’t seem to work.
I really do apologize for my lack of coding skills. I posted in this part of the forum knowing that I would probably have to implement some type of code in order to do what I wanted but this is my first time doing anything but simple CSS editing.
Likely, there is something incredibly obvious or missing that I did wrong.
I really appreciate your help so far!
import wixData from 'wix-data';
$w.onReady( () => {
$w("#dataset1").onReady( () => {
let hasPrevious = $w("#dataset1").hasPrevious(); // true
{if( hasPrevious === false ) {$w('#back').hide()}
else {$w('#back').show()}
}
});
$w.onReady( () => {
$w("#dataset1").onReady( () => {
let hasNext = $w("#dataset1").hasNext(); // true
{if( hasNext === false ) {$w('#forward').hide()}
else {$w('#forward').show()}
}
});
});