I am having a repeater in a dynamic page.
In the repeater, there is a button.
The button’s label is manually connected to the dataset (not dynamic dataset)
In the page, I will get the current item’s _id
$w('#dynamicDataset').onReady(() => {
var id = $w('#dynamicDataset').getCurrentItem()._id;
});
What I am trying to achieve is to - change the respective button’s label, in the repeater, to the next label…
For example →
The user is in the dynamic page ‘A’ .
So, in the repeater, the button of label ‘A’ should change in to the next, which is ‘B’
@jonatandor35 Sorry for that !!!
Here’s what I am trying to do →
I am having a database called ‘Category’
I made a dynamic page on the base of this database.
There are 10 items in it - in the field called ‘name’.
In the the dynamic page, I am having a repeater connected to the ‘Category’ dataset ( Not the dynamic dataset )
In the repeater, there is a button. The button’s label is connected to the same dataset → to the field ‘name’
Now, in the live site, when the user is in the dynamic page of the item ‘A’
→ In the repeater, the respective button whose label is ‘A’ should not be shown and should change into the next item, which is ‘B’. Then 'B’s place should be occupied by ‘C’ …
If you prefer, then instead of retrieving all items from the general dataset and filtering it using JS, you can just set filter for the general dataset with
“If you prefer, then instead of retrieving all items from the general dataset and filtering it using JS, you can just set filter for the general dataset with”