Skip 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.

Block/enable a field, depending on another field

Featured Replies

Hi,

I want to block or enable the fullfilling of a field, depending on the value of another one.

Example:

- If training = "done", then enable the field training_date to be fulfilled.

- If training = "to be scheduled", the field training_date must be blocked (the date has not been defined yet).

What is the best way to do it? Looking forward to any help. Thank you!

Havent tried this, but seems like the easiest way would be through define fields.

set field training_date to be validated by calc:

not training = "to be scheduled"

and have pop up message saying "Cannot enter a date for someone who needs to be scheduled" or something like that.

You could turn off "Allow entry into field" and then use a script to "Go to field"

The script would check if training="done" (or whatever) before it performs the "Go to field" script step. You could activate this from a button next to the field.

You could even place this button just behind the field. Just don't remember to use another layout for search.

  • Author

Razumovsky,

I kept your solution. Thanks for your help. Thanks to everyone.

I have just substituted the formula:

not training = "to be scheduled"

by:

not training = "to be scheduled" or Isempty(training_date)

Otherwise, once the user chooses training = "to Be Scheduled" and types a date in the training_date field, he gets a warning message but doesn't have any way to exit, not even to erase the content of training_date.

Keep in mind, though, that this will not prevent someone from entering a date first, and then entering "to be scheduled" in training. If this is a possibility, the above scripting solutions would be much more secure.

  • Author

Actually, you can ask the system to do the test on training_date when the user does his first action outside of the current layout - to do it, you must unclick "Validate only if field has been modified" on the "Specify calculation" window.

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

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.