Jump to content

How to clear MultiLineTextBox


Chun Seong Low

Recommended Posts

Hello,

Could you please explain your use case in a bit more detail (or provide a sample .dxp file)?

If you e.g. have a MultiLineTextBox (aka "Input field (multiple lines)") in a Text Area that displays the value of a document property, you could simply set that document property to an empty string in your IronPython script.

Example:

Document.Properties["myProp"] = ""

Link to comment
Share on other sites

Hello again,

I have attached an example dxp file that does this, using the script example that I mentioned in my previous response.

In the example, myProp is a document property that I created for this, which can be set using the Multi Line Text Box. That document property is also displayed in a label. At the bottom, you have a button that clears myProp, using the following script:

Document.Properties["myProp"] = ""

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...