I thought I saw someone with a solution to this at one time, but unable to find. Is there a way to have a repeater set up with search boxes (I have that coded with the “standard” search box/drop down menus…but now want to have it save that search so when visitor clicks on any link to leave that page, ,when they return the previous search is still active so they do not lose their place?
The Saved Search example shows how to save the search parameters.
One issue I am running into. I have two pages/two repeaters that attempting to use this one. One data hook code for field named Combination, the other is Combo.
But something not working with the Combo page. It works sporadically, so I am guessing I have not put the hook codes together properly?
export function OurOzarksData_beforeInsert(item) {
return updateCombination(item);
}
export function OurOzarksData_beforeUpdate(item) {
return updateCombination(item);
}
function updateCombination(item) {
const { title, city, state, zipCode, region, geographic, tourist, county, section, category, shoppingType, subject, servicesOffered } = item;
return Object.assign({}, item, {
combination: ${title} ${city} ${state} ${zipCode} ${region} ${geographic} ${tourist} ${county} ${section} ${category} ${shoppingType} ${subject} ${servicesOffered}
});
}
export function Article_beforeInsert(item) {
return updateCombo(item);
}
export function Article_beforeUpdate(item) {
return updateCombo(item);
}
function updateCombo(item) {
const { title, date, issue, author, subject, location } = item;
return Object.assign({}, item, {
combo: ${title} ${date} ${issue} ${author} ${subject} ${location}
});
}