I have this form:
the form has a repeater which is connected to a dataset. all i want is to be able to click the button ( watch ... ) and open a dynamic page using the value of the text in "ID" text box.
tried to use this piece of code
but i dont know where to put it or how to use it
Please help!
Old post, but just in case, use the event action of any items integrated to a repeater :
export function whateverElement_onClick(event) { let $item = $w.at(event.context) const data = $w("#repeater2").data; let clickedItemData = data.find(item => item._id === event.context.itemId); //console.log(clickedItemData._id) == "MY165ID" }