Forum Discussion
TuwannaSycamore
4 months agoCommunity Member
Submit button Override
Has anyone had this problem and found a solution? I am working in a course that was created a couple of years ago by someone else. I added a slide that was a multiple answer question. The slide keeps...
Nedim
3 months agoCommunity Member
This little JavaScript snippet disables the default “Invalid Answer” prompt, allowing you to display your own custom layer:
const style = document.createElement('style');
style.textContent = `
#message-prompt-wrapper { display: none !important; }
.overlay.overlay-message { display: none !important; }
`;
document.head.appendChild(style);
Place this script in an Execute JavaScript trigger that runs when the timeline starts on your question slide. Follow it with two additional triggers (in the correct order, as sequence matters). This approach works for all types of interactions. I've also included a sample .story file for reference.
- TuwannaSycamore3 months agoCommunity Member
Thank you for this advice and assistance. I look forward to trying this out. It will certainly give me more options for controlling what happens in the course.
Related Content
- 6 months ago
- 2 years ago
- 9 months ago