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

Adding a description to a text feild based on a value in another field.

Featured Replies

Hello all, I am making a dispatch database for a volunteer ambulance organization and in the db I have:

A list of radio codes (aka 10-codes) where each code corresponds to its own value...

example:

10-63 = Responding to location:

10-98 = Available in the area.

When a radio code is selected I would like a description to go into the addjacent text feild with the ability to type further information...

example:

10-63 | Responding to location: QB/63DRIVE for mortor vehicle accident

10-98 | Available in area, from (whatever) area

I already have the feilds set up all I think I need is a script to insert the corresponding description into the text box.

Thanks for you help

Hi

the addjacent text field must have an AutoEnter calc in its option:

Case(

code = 10-63 ; "Responding to location: ";

code = 10-98 ; "Available in area, ";

code = ..... ; "....................";

""

)

  • Author

But how will the "Description" Field know what what selected in the dropdown "Code" Field?

here is a picture

http://home.fhvac.org/images/fm/pic1.bmp

Thank you much.

your picture shows codes that are different from what you said !

They appear to be single numbered...

So I don't know why you said:

10-63

10-98

etc.

BTW: Description field will keep the exact value by the calc above; that calc must be in the option of AutoEnter of "Description"

  • Author

Well the 10 is assumed, in emergency services we use codes called 10-codes, basically its shorthand for terms.

I was just providing the 10 for informative purposes. 63 and 98 may make no sense to people.

If those codes are more than a few, it's better to make a new table of CODES with 3 field:

ID

CodeNumber

Description

and a relationship from:

YourTABLE::CodeNumber = CODES::CodeNumber

So, at the end, no calc will be involved.

Create an account or sign in to comment

Important Information

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

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.