Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

How can I allow a user to put a null value back in a dropdown box after already selecting an item?


This topic is 5988 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted (edited)

I have a value list that is created via a table.

The user needs a way to set the value back to nothing (null), after accidentally selecting a value from the dropdown list.

How do I do this? I don't want to add a fake record to the table - and even then, the dropdown wouldn't be putting a null value back in that field... I can't allow them to type into that field (and therefore, be able to blank it).

(This problem is related to my post:

http://fmforums.com/forum/showpost.php?post/295804/)

I'm hoping this is an easy question, and everyone will jump at the chance to give me that easy answer. :

Thanks,

Joni

Edited by Guest
added link to post with more background info on issue
Posted

You can put a button on your layout with a simple script attached

setfield(yourfield;"")

That will empty your field of any contents

hth

Phil

Posted

Good idea. And nowadays you don't even need a script, the button can run script steps directly. But maybe that's what you meant.

Posted

A minor point. If it's just a single step, don't use a script, as Fitch says. But we aware that the single step will "open" the record and leave it open. Whereas a 2-step script, with Commit Record as the 2nd step, would not.

Of course, a user editing the field would also open the record, and it's difficult to think of a situation where it would be a problem. But it's something to be aware of. I'd also almost always just use the single step, as I don't like cluttering the scripts.

Posted

Select the item again with the Shift key pressed.

This topic is 5988 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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

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