If you set an argument to provide a summary if the argument is not present, then you'll next be asked which style should be used for displaying this summary. However, if you only have the argument validator configured to provide a summary when the argument does not validate, the option to choose a summary style is not presented.

There is a workaround to first set the argument to provide a summary view if the argument is not present, and then set the summary style, and then change the argument to do something else when the argument is not present. However, this is non-obvious and not very user friendly.

Comments

aclight’s picture

Title: It's not possible to set summary style when faild validation uses summary » It's not possible to set summary style when failed validation uses summary
merlinofchaos’s picture

Well, the other work around is to click on the 'style' link that will appear, but yes, the code that tells it to go to the next form is probably only checking the default and not the validate_fail flag.

aclight’s picture

Right, but the style link only appears if you've selected to give a summary if the argument isn't present.

merlinofchaos’s picture

Oh! Ok, so *both* checks are not checking the validate fail setting. Nice. Shouldn't be too hard to fix.

merlinofchaos’s picture

Status: Active » Fixed

Fortunately, this was just a change to needs_style_plugin() and was not hard. Thanks!

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.