Skip to content

Conditional questions on customisable templates #2451

@sjDCC

Description

@sjDCC

Hi Ray. We’ve spent some time trying to break this and most works well, but we hit a few errors noted below.

1. Delete question button missing
We noticed a difference between live site and -dev. The “delete” question button is missing.
dev-site
live-site

2. Error when deleting question option with conditions
After publishing a template and verifying that all conditions worked as expected. We tried to re-edit this. When attempting to delete a question option which had a condition attached, we hit an error.
error-when-deleting-option-with-conditions
As a fix, we should have an error message that “The question option can not be deleted as it has a condition attached. Please delete the condition first”. On re-testing, no error is thrown when the condition is removed first.

3. Incorrect spacing in confirmation message
This is a very minor thing, but we noticed odd spacing in the confirmation message below
weird-spacing

4. Internal server error
We saw a message on the front-end UI about an “Internal server error”. We assume this was due to an email notification not being able to be sent. We’ll test more to try and replicate to see if it’s a common error when editing and republishing a template which has existing conditions.
Error-due-to-email

5. Error when editing conditions AND text box display
This second error occurred when we edited existing conditions, added a new condition and removed the comment area. When we went back to this question, it had removed all the conditions and the comment area. It seems the comment area change was the only thing saved. Perhaps error is associated with that combination?
error-2

6. Error on section re-ordering - don't permit when there are conditional questions
We can reorder the sections added by an institution but it is not recognising the save as a new version and flagging that there are unpublished changes. After reordering, we could set conditions to remove questions that had previously been in first place and had existing conditions on them. This threw a 404 error as shown below.
error-3
When there are conditional questions, it should not allow the admin to re-order the section. We need an error message to say “You can not re-order sections with conditional questions. Please remove conditions to re-order”

Whenever we hit a 404 error it jumps to the historical version of the template so you can’t edit.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions