Returns the text from the current form. Returns the value as a string if possible for the given form type
This method doesn't have any parameters.
builder.CreateFile("docx"); var oDocument = Api.GetDocument(); var oComboBoxForm = Api.CreateComboBoxForm({"key": "Personal information", "tip": "Choose your country", "required": true, "placeholder": "Country", "editable": false, "autoFit": false, "items": ["Latvia", "USA", "UK"]}); var oParagraph = oDocument.GetElement(0); oParagraph.AddElement(oComboBoxForm); var sText = oComboBoxForm.GetText(); oParagraph = Api.CreateParagraph(); oParagraph.AddText("Form text: " + sText); oDocument.Push(oParagraph); builder.SaveFile("docx", "GetText.docx"); builder.CloseFile();