dervaish Posted May 20, 2008 Posted May 20, 2008 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.
mr_vodka Posted May 20, 2008 Posted May 20, 2008 (edited) http://fmforums.com/forum/showpost.php?post/291180/ Edited May 20, 2008 by Guest Took out reference to Comment
comment Posted May 20, 2008 Posted May 20, 2008 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/
comment Posted May 20, 2008 Posted May 20, 2008 No, it's me that should have been more clear. I have added a similar clarification to the referenced thread.
dervaish Posted May 21, 2008 Author Posted May 21, 2008 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.
comment Posted May 21, 2008 Posted May 21, 2008 Same principle, only easier to implement: ClearFieldOnTrigger.fp7.zip
dervaish Posted May 21, 2008 Author Posted May 21, 2008 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)
Recommended Posts
This topic is 6031 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now