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.

fomatting a field to show result from value list

Featured Replies

I have a pop up menu that uses a value list: "1 Day, 1 week, 1 month, 3 months, exact date".

These are the values for the next call to be made under the "call menu" field.

Let's say I choose "1 week." When i click that pop up menu and choose "1 week" i want a different field ("next call") to display the result of the current date + 7 days.

Let's say i choose "3 months." When chosen, i want the "next call field" to display the current date + 3 months.

Let's say i choose "exact date." I want to perform my "next call" script which uses an input field to specify the exact date.

[color:"blue"] How do i do this? where do i define these things? what date calculations do i use?

Your help is appreciated, Thanx.

  • Author

I have a pop up menu that uses a value list: "1 Day, 1 week, 1 month, 3 months, exact date".

These are the values for the next call to be made under the "call menu" field.

Let's say I choose "1 week." When i click that pop up menu and choose "1 week" i want a different field ("next call") to display the result of the current date + 7 days.

Let's say i choose "3 months." When chosen, i want the "next call field" to display the current date + 3 months.

Let's say i choose "exact date." I want to perform my "next call" script which uses an input field to specify the exact date.

[color:"blue"] How do i do this? where do i define these things? what date calculations do i use?

Your help is appreciated, Thanx.

  • Author

I have a pop up menu that uses a value list: "1 Day, 1 week, 1 month, 3 months, exact date".

These are the values for the next call to be made under the "call menu" field.

Let's say I choose "1 week." When i click that pop up menu and choose "1 week" i want a different field ("next call") to display the result of the current date + 7 days.

Let's say i choose "3 months." When chosen, i want the "next call field" to display the current date + 3 months.

Let's say i choose "exact date." I want to perform my "next call" script which uses an input field to specify the exact date.

[color:"blue"] How do i do this? where do i define these things? what date calculations do i use?

Your help is appreciated, Thanx.

The calculation for next call is:

Case (

call menu = "exact date" ;

input field ;

Choose ( Length ( call menu ) - 5 ;

Get ( CurrentDate ) + 1 ;

Get ( CurrentDate ) + 7 ;

Date ( Month ( Get ( CurrentDate ) ) + 1 ; Day ( Get ( CurrentDate ) ) ; Year ( Get ( CurrentDate ) ) ) ;

Date ( Month ( Get ( CurrentDate ) ) + 3 ; Day ( Get ( CurrentDate ) ) ; Year ( Get ( CurrentDate ) ) )

)

)

Note that this works on the basis of "1 Day", "1 week", "1 month" and "3 months" being 5, 6, 7 and 8 characters long. If you change these values, you will have to spell out the options in the Case() function.

Regarding running a script after choosing "exact date" - I believe on Windows you can do this without a plugin. This has been covered here before, so do a search for it.

The calculation for next call is:

Case (

call menu = "exact date" ;

input field ;

Choose ( Length ( call menu ) - 5 ;

Get ( CurrentDate ) + 1 ;

Get ( CurrentDate ) + 7 ;

Date ( Month ( Get ( CurrentDate ) ) + 1 ; Day ( Get ( CurrentDate ) ) ; Year ( Get ( CurrentDate ) ) ) ;

Date ( Month ( Get ( CurrentDate ) ) + 3 ; Day ( Get ( CurrentDate ) ) ; Year ( Get ( CurrentDate ) ) )

)

)

Note that this works on the basis of "1 Day", "1 week", "1 month" and "3 months" being 5, 6, 7 and 8 characters long. If you change these values, you will have to spell out the options in the Case() function.

Regarding running a script after choosing "exact date" - I believe on Windows you can do this without a plugin. This has been covered here before, so do a search for it.

The calculation for next call is:

Case (

call menu = "exact date" ;

input field ;

Choose ( Length ( call menu ) - 5 ;

Get ( CurrentDate ) + 1 ;

Get ( CurrentDate ) + 7 ;

Date ( Month ( Get ( CurrentDate ) ) + 1 ; Day ( Get ( CurrentDate ) ) ; Year ( Get ( CurrentDate ) ) ) ;

Date ( Month ( Get ( CurrentDate ) ) + 3 ; Day ( Get ( CurrentDate ) ) ; Year ( Get ( CurrentDate ) ) )

)

)

Note that this works on the basis of "1 Day", "1 week", "1 month" and "3 months" being 5, 6, 7 and 8 characters long. If you change these values, you will have to spell out the options in the Case() function.

Regarding running a script after choosing "exact date" - I believe on Windows you can do this without a plugin. This has been covered here before, so do a search for it.

  • Author

thanx, i am gonna try this first thing in the morning, i will let you know if i run into any problems

  • Author

thanx, i am gonna try this first thing in the morning, i will let you know if i run into any problems

  • Author

thanx, i am gonna try this first thing in the morning, i will let you know if i run into any problems

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.