text_input_default property
FormField.text_input_default property
Gets or sets the default string or a calculation expression of a text form field.
@property
def text_input_default(self) -> str:
...
@text_input_default.setter
def text_input_default(self, value: str):
...
Remarks
The meaning of this property depends on the value of the FormField.text_input_type property.
When FormField.text_input_type is TextFormFieldType.REGULAR or TextFormFieldType.NUMBER, this string specifies the default string for the text form field. This string is the content that Microsoft Word will display in the document when the form field is empty.
When FormField.text_input_type is TextFormFieldType.CALCULATED, then this string holds the expression to be calculated. The expression needs to be a formula valid according to Microsoft Word formula field requirements. When you set a new expression using this property, Aspose.Words calculates the formula result automatically and inserts it into the form field.
Microsoft Word allows strings with at most 255 characters.
See Also
- module aspose.words.fields
- class FormField