EditGotoField @Command (Formula Language)
In a document in Edit mode, places the insertion point in a field you specify.
Syntax
@Command( [EditGotoField] ; fieldName )
Parameters
fieldName
Text. The name of the field where you want to place the insertion point. The field must be editable.
Usage
A document must be open in Edit mode.
This command does not work on the Web.
Examples
- This formula, when added to the "Apply font" hotspot button, applies
the font a user selects from the "fonts" Dialog list field (which
derives its list of fonts by choosing to Use formula for choices and
entering @FontList as the formula) to the text the user enters or
highlights in the "Body" Rich Text field. If no font was selected
from the dialog list, an error message displays telling the user to
select one.
@Command([EditGoToField];"Body"); @Command([EditSelectAll]); result := @Command([TextSetFontSize];size); @If(@IsError(result);Prompt([Ok];"Error encountered";"You must enter a font size first");result)