-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Default to required=false and persist=false for inputs with ItemVisibility.MESSAGE #299
Comments
This issue has been mentioned on Image.sc Forum. There might be relevant details there: |
This issue has been mentioned on Image.sc Forum. There might be relevant details there: https://forum.image.sc/t/display-text-label-with-script-parameters/10772/12 |
Just reviving this thread after having a potential solution to my use case. The problem I faced was not with inputs required or not, but rather with messages and buttons that are here to give some info to the user. The problem is that if all inputs are programmatically given, the messages still show up: What I've done is a PreProcessor Plugin that looks at all inputs. If the only unresolved inputs have a 'message' visibility type, then I resolve them, and they don't show up. I put this in a repo of mine, but I think it makes sense in scijava common.
|
When using a message parameter:
it would help to have
required=false
andpersist=false
by default, as this is almost always what you want. Otherwise, you'll have to provide this parameter when e.g. running from command line.Suggested by @xulman.
The text was updated successfully, but these errors were encountered: