Skip to main content
Inspiring
January 2, 2021
Question

Editable and Searchable Template Form

Can someone recommend how to create an editable template form that is also searchable by field name?

Example editable field names:

Name

Location

Color 

Images (does not need to be searchable)

This topic is closed to new replies. Start a new post to keep the conversation going.

1 reply

try67
Community Expert
Community Expert
January 2, 2021

There is no built-in option to search by field names. It can be done using a simple script, though.

Let's say you have a button called "SearchField". You can add the following code to its Mouse Up event to achieve it:

 

 

var fname = app.response("Enter the field name to look up:", "", "");
if (fname!=null && fname!="") {
	var f = this.getField(fname);
	if (f==null) app.alert("There's no field with this name.");
	else if (typeof f.page=="number") this.pageNum = f.page;
	else if (typeof f.page=="object") this.pageNum = f.page[0];
}

 

Translate