Hey. I have a search bar in which the name of the current user should be automatically displayed and after the name of the current user, the search bar should find data from the database collection. Everything should happen automatically when a user enters this page. I need a code that will automatically add the name of the current user to the search bar. How to achieve this?
The search code is:
export function input25_viewportEnter(event) {
let SearchValue = $w(“#input25”).value;
$w(“#dataset1”).setFilter(wixData.filter().contains(‘Imja_Familija’, SearchValue));
}