Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
Dialog.AddField
Adds a field for the dialog.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
Dialog | 6.4 | ✅ Yes | ❌ No | ❌ No | ❌ No | ❌ No |
MBS( "Dialog.AddField"; Label { ; Text; Placeholder; Password; TextViewHeight } ) More
Parameters
Parameter | Description | Example | Flags |
---|---|---|---|
Label | The label text for the field. | "First Name:" | |
Text | The text for the field. This is initial text. |
"" | Optional |
Placeholder | The placeholder text shown when no text is in the field. (not for text view) |
"Put your name here" | Optional |
Password | Pass 1 to hide text with • or 0 for normal text field. | 0 | Optional |
TextViewHeight | Available in MBS FileMaker Plugin 10.0 or newer. Pass number of points in height for a textView. If value is >20, we will use a text view instead of a text fiel.d |
50 | Optional |
Result
Returns index or error.
Description
Adds a field for the dialog.Please use Dialog.GetFieldText later to query text for field.
Returns the index of the field.
Maximum we allow 10 fields.
Examples
Adds two fields:
Set Variable [$r; Value:MBS("Dialog.AddField"; "Username:"; ""; "username here")]
Set Variable [$r; Value:MBS("Dialog.AddField"; "Password:"; ""; "password here"; 1)]
See also
Release notes
- Version 10.0
- Added TextViewHeight parameter for Dialog.AddField function.
- Version 8.1
- Changed Dialog.AddField to accept tab keys to switch between fields.
Blog Entries
- Goodies 33: Custom context menu commands for FileMaker ScriptWorkspace
- MBS Plugin Advent calendar: 17 - Dialog
- MBS FileMaker Plugin, version 9.6pr3
- Add a search and replace command for FileMaker Script Workspace
- MBS FileMaker Plugin, version 8.1pr5
- MBS FileMaker Plugin, version 6.4pr8
- MBS FileMaker Plugin, version 6.4pr7
This function is free to use.
Created 13th September 2016, last changed 13th December 2019