Picture of Rainer Schweigert
New submit button behavior
by Rainer Schweigert - Wednesday, 24 March 2021, 4:47 PM
 

Hello,

I have a custom question component (drag&drop) that worked fine in AF 5.6.1. Despite _canSubmit is set to true after dragging the first item, the submit button stays disabled. Do I miss something?

regards,

Rainer

Picture of Matt Leathes
Re: New submit button behavior
by Matt Leathes - Wednesday, 24 March 2021, 5:32 PM
 

sounds like the submit button behaviour changes made in v5.7.1 could have broken it.

Apologies for that.

I think if you revert back to the old behaviour using the instructionError plugin, that might resolve this. If not, or you want to make it compatible with the new functionality I think you just need to add a call to model.checkCanSubmit whenever an item is dropped, a bit like this.

Picture of Rainer Schweigert
Re: New submit button behavior
by Rainer Schweigert - Friday, 26 March 2021, 3:38 PM
 

Matt,

 

model.checkCanSubmit did the trick.

 

Many thanks!

Picture of Matt Leathes
Re: New submit button behavior
by Matt Leathes - Friday, 26 March 2021, 4:13 PM
 

No problem at all!