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.

set / reset a field's value to blank

Featured Replies

hello...

i have 3 fields [type [listbox], date1, date2]...

i want to set/reset date-field-1 and date-field-2 to blank [if not already blank] if a user changes the value of drop-down-list-box.

for example

initial value selected...

Value selected = 1

date 1 = 12/12/2007

date 2 = 12/12/2006

and then when the user selects

value selected = 2

date 1 = "" [changes/reset to blank]

date 2 = "" [changes/reset to blank]

also i want to keep date 1 and date 2 fields active to receive input from user.

so how can i accomplish this?

thanx in advance for ur help and input.

http://fmforums.com/forum/showpost.php?post/291180/

Edited by Guest
Took out reference to Comment

That's not my file - I only fixed the relationships in that one, and didn't even look at the field definitions. The calculations in that file are a bit convoluted and they use Evaluate() to trigger the change, which IMHO is not good practice.

The original demo of conditional value list with self-clearing field is posted here:

http://www.fmforums.com/forum/showpost.php?post/195641/

Ah sorry I should have been more precise. :

No, it's me that should have been more clear. I have added a similar clarification to the referenced thread.

  • Author

thanx for the replies and help guys. this will still not solve my problem bcos the fields i want to set/reset to are in the same table [same row infact] and are date-format. 3rd field is a dropdown listbox [again same table, same row] and based on its selection i want to set/reset the other two date-fields to blank.

once again thanx for the help.

  • Author

ur a life-saver comment. that last solution worked perfectly. i no longer need the script i was using to clear the fields. also now i don't have to worry about the extra line my script was adding to the log file which is keeping track of all the changes as they happen. now with you 1 line solution, everything is in place.

thank you so very much for your help. B)

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.