Normally fellow developers will tell you that, that is not possible.
I found a way to do this.
In your Runbase-based class you can implement the putToDialog-method e.g like this:
protected void putToDialog()
This will make the field act like it was a mandatory field from a datasource in a form, showing a red-wavy line under the field, and requiring the field to have a value.