[SOLVED][Customization] Form not clearing properly

Hello All,

I’ve created a customization using UD12Form that allows users to print labels. They enter the data in textboxes, and print with a button. I am using ClearForm(); on button click event for the “Clear” button and I also have it clearing the form after a label is printed.

My issue is, after a print job, the data clears as it should. But as soon as I choose another label format, or even uncheck my current selection and select it again. The data comes back.

Select label format.
Enter data, click print.
Form clears.

Uncheck “Blank Line Label” to choose a different format. Notice how the data comes back

I’d also like to mention that I’ve tried Refresh & ClearDataSet and I’m getting the same result.

Any help is appreciated.

Are the fields bound to the UD12 fields or something different?

They are bound to CallContextBpmData. I’m using the Character fields

That is the issue. You need to clear the CallContextBpmData, not just the form fields.

Ahh, that makes sense. I am having a hard time adding this to my script. What’s the easiest way to go about clearing the CallContextBpmData?

Actually, I figured it out.

Thank you guys!