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.

CurrentDate input in a text box

Featured Replies

Hi!

I have a search page with this code:

<P><INPUT TYPE="text" NAME="_cday" VALUE="01/01/2003"

<P><INPUT TYPE="text" NAME="_cday" VALUE="31/12/2003"

This code works fine, but I would like to have the date in the second line to show the date today. I have tried to do this:

<P><INPUT TYPE="text" NAME="_Cday" VALUE="[FMP-Currentdate]"

But this only show up as [FMP-Currentdate] in the text box.

The DB is located in another folder than the Web-folder.

In the browser I open the URL: http://localhost/search.htm

Maybe there is another way to get the wanted result. I hope someone can give me a clue on what to do.

Ingar

[FMP-CurrentDate] will work if the page is processed by WebCompanion first. If not you may have to use some Javascript.

All the best.

Garry

Hi, Ingar! Yeah, Garry's right... you cannot display FMP information from your database on your "first" page. You can have input boxes for searches and stuff but if you are actually drawing upon info in your db (or in this case from FMP application), the Web Companion cannot substitute true desired data for your tags until it has been accessed.

You can do what Garry hints at by using JavaScript (it has date functions) or you can do what I did and just have your 1st page be an intro page with a -findany action that refreshes automatically to the main page that has the current date (I used a calc field using Status(CurrentDate) for mine) and search query boxes.

Good luck!

--ST

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

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.