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.

Custom Dialog Not working

Featured Replies

I have a problem and the script is really simple. What am I doing wrong.

I have a field called "comment" in a table. I want a custom dialog box to open and I want two options for the user. When the user hits button 1, the data from the input field enters perfectly into my comment field. When the user hits the second button it won't put the data into the "comment" field. I thought I was using the getlastmessagechoice function incorrectly, so I got rid of that part of the script as a test. Now I'm left with a two line script to just get the second button to allow the data to enter into the "comment" field. My script looks like this:

- create new record

- Show Custom Dialog (set up for 1 field input and two buttons).

- Exit Script.

Why is it that when you hit button one, the data goes into the "comment" field. And when you hit button 2 it doesn't? What am I missing here?

Thanks for your help.

[quote name=Help > Script steps reference > Miscellaneous script steps > Show Custom Dialog script step]Button 1, the default or rightmost button, is the only button that will write information from the input fields to a file.

  • Author

ah ha... so how do I go about something like this...

button one is to publish the comment to the event log record... button two is supposed to do what button 1 does PLUS create an email to send to people associated with the record? I know the email part, but how do I get that second button to write the data to the field like button 1?

Edited by Guest

You could show a second custom dialog for the e-mail part, or create your own dialog layout and show it in a new window, or use a plugin that provides dialogs with more abilities than FM's native one.

  • Author

Sounds like a good idea, I'll go the route of making my own layout with separate buttons. Thanks again for the clarification.

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.