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.

Execute Script only once per calendar day... Bring up dialog

Featured Replies

I have a supposedly simple thing I would like to do but I am afraid it is rather difficult 

Here Goes

I have a button on which I would attach a script to allow the user of my file to open a page on the internet.

BUT after they have opened it   the following needs to happen

1. They can close it and open it again throughout the same calendar day.

OR

1. They can try to open it again and a dialog comes up that says you can only do this once per day.

 

I have a list of urls to go to but after they have gone to them they are erased from the database.

The trick is using the same button to know if it has already done the script that day.

This is a hard one. 

 

script checks to see if date field = today's date, if yes - do something else; if no - open url and set date field to today's date.

  • Author

That sounds good but is there anyway to make it so no one can cheat on the date buy setting their internal clock forward for example. I just don't know these things. Someone might know here.  Thanks for the answer!

ok... what I would do would be to create a Date field and text field, as they go to those url's  enter each url into the text field..  and I would probably use  something like 

if NOT pattercount(textfield;URL)  and datefield  <>  get(currentdate)

 

By doing this they can visit each url 1 time  at any time of the day., I would recommend this because you said you have a LIST of URLS.. this can also give you some tracking on what urls are used .

as far as worring about someone changing the date, you can use a hidded webviewer to display the date from a specific site  or for that matter a simple text file on your own site that is updated daily with only the current date, your script can easily pull the date from that..

this is pretty simple to code, let me know if you want some help...

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.