Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

URL To Predefined Search Link (FMP 6 Unlimited)

Featured Replies

  • Newbies

Current Contact List

Sorry for not having answered this earlier.

POSTs, e.g. forms are not submitted automatically when a page with a form is loaded. Somebody needs to hit the submit button. Another solution is to add a Javascript command onload="document.forms[0].submit();" into the body tag. However, then you are dependent on the user if he has turned on Javascript in his browser or not.

Much better, however, is to use a GET request in your case and forget about your delegate_search page. A GET request in your case is an URL that you offer as a link. You can construct it from the information in your delegate_search by taking all the name,value pairs and adding them as &name=value in the URL:

http://www.yourhost.com/FMPro?-db=contacts.fp5&-format=delegate_summary.htm&-error=delegate_error.htm&-lay=contacts&-max=all&category=Delegate&-find

Also, try using "[FMP-Record]" tags. For example:

[FMP-Record]

[FMP-field: salutation] [FMP-field: firstname] [FMP-field: lastname]

[FMP-field: position]

[FMP-field: organization]

[FMP-field: address1]

[FMP-field: address2]

[FMP-field: city] [FMP-field: state] [FMP-field: zip]

[FMP-field: country]

email: [FMP-field: email1]

Tel: [FMP-field: phone1]

Fax: [FMP-field: fax1]

[/FMP-Record]

Good Luck.

Garry

  • 2 weeks later...
  • Author
  • Newbies

Thanks, Martin, using the URL in the way you suggested worked!

All the best,

John

  • Author
  • Newbies

Gary:

Thanks for your reply.

Adding the [FMP-Record] field must have been obvious to you! Anyway, the resulting web page looks fine but now I have two more questions for you:

1. Is there anyway of suppressing blank lines on the web page? In my example, the field [FMP-field: position] is often empty & I'd like to remove the blank line.

2. In my search page I search on a field called "category" from the database "contacts.fp5". I would now like to search on a global field called "xgid" from a related database "groups.fp5" but display the fields from "contacts.fp5". Is this possible?

Thanks again, for your help,

John

1. You can use [FMP-If] tags to remove the blanks. Like this:

[FMP-If: position .eq.][FMP-Else][FMP-Field: position][/FMP-If]

2. You can refer the related fields with the "::". Like this:

[FMP-Field: groups::xgid]

Good Luck.

Garry

  • Author
  • Newbies

Garry:

Thanks for your help! Your answer to my first question did the job.

The second problem has not been resolved. Perhaps I was mistaken when I referred to the field I'm trying to display; I called it a related field, but now that I look at the database I see that contacts.fp5 is displaying fields from another database (groups.fp5) in this way:

<>

What I'm really trying to do is find records in groups.fp5 with a value of field "gid"="G15". Then I want to display contact details - name, address, etc. - from the contacts.fp5 database. Sorted by lastname from contacts.fp5.

So, in my search.htm file I have the following:

And then in my summary.htm file I've tried the following:

[FMP-field: contacts::firstname] [FMP-field: contacts::lastname]

[FMP-field: contacts::organization]

[FMP-field: contacts::address1]

[FMP-field: contacts::address2]

But the summary.htm file displays no information from the search other than the title on the page.

Any advice?

Thanks,

John

To display records from the Portal you will need to use these tags:

[FMP-Records]

[FMP-Portal: contacts]

[FMP-Field: contacts::firstname].....

[/FMP-Portal]

[/FMP-Records]

Good Luck.

Garry

p.s. I think you would need to have the Portal, on the Layout, sorted by Lastname.

Edited by Guest
Portal Sort

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.