If form's method is set via javascript, then Couch will not pick up the change and will try to use default method='get', hence the posted form will never trigger k_success block.

I'm leaving this observation here if someone bumps into the same issue. Will just set the method manually via hardcoded form's params..

Code: Select all
    <cms:if k_success> -- will never happen
    <cms:input type='submit' name='submit' value='Submit' />

        var thisform = document.forms['<cms:show k_cur_form/>'];
        thisform.method = 'post';