Chun Seong Low Posted November 23, 2022 Share Posted November 23, 2022 HiI'm new to phyton, how can I clear MultiLineTextBox value with phyton script?Regards Link to comment Share on other sites More sharing options...
Fredrik Rosell Posted November 28, 2022 Share Posted November 28, 2022 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 More sharing options...
Chun Seong Low Posted December 5, 2022 Author Share Posted December 5, 2022 HiI would like to create a button, whenever I click the button, it will clear the content in the MultiLineTextBox.Regards Link to comment Share on other sites More sharing options...
Fredrik Rosell Posted December 5, 2022 Share Posted December 5, 2022 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 More sharing options...
Chun Seong Low Posted December 9, 2022 Author Share Posted December 9, 2022 It works! Thanks Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now