Copy link to clipboard
In captivate can we change the color of disable state of default "Submit" button on click
Currently it get disabled but still it remain in look and feel of "normal"
Copy link to clipboard
Please, I need some more information. What do you mean by 'default "Submit" button'? That default Submit button can be linked to a quiz slide or to a Text Entry Box, to give some examples. If it is a custom button, it is pretty easy to give you a possible workflow, but if it is an embedded Submit button on a quiz or KC slide it becomes difficult. Moreover you cannot even disable such a button. You didn't mention neither which event you use to disable the button.
For a custom button two possible workflows:
1. Create a custom 'Disabled' state, and add the command 'Change State ....' to the Disable command which means you'll need an advanced or shared action. Moreover you didn't specify how and when you want to go back to the Normal state.
2. If you don't use the InBuilt state 'Visited', you can create that state and it will automatically appear when the button is clicked. But since I ignore the rest of your setup, I'm not sure if this could be possible.
yes Default means embeded Submit on inserting through Quiz or Knowledge check
Those buttons are embedded objects. That means they do not have an ID, you cannot control their states. It is simply impossible to disable such a button. I still don't understand what you mean, sorry about that. It is the Submit button which controls the two-step Submit process. How will you disable it???
Thanks for the update!
Actully requirement was - once we click submit after selecting any option Submit button become unselectible but visually color remains of the "Normal" state.
If that is indeed the "requirement" that you want, that is actually how Captivate currently works.
The appearance of the Submit button does not change AFTER you have clicked it to submit an answer to a quiz question. It remains in Normal state, even though clicking it after that point will not do anything.
But this 'requirement' seems different to what you originall stated you wanted. Seems confusing.
Completely different from the original question, but I suspect this is due to the use of correct terminology.
As I mentioned before, the embedded button objects on the quiz and KC slides cannot be controlled individually due to their lack of unique ID. In the SWF era you could get into the inactive part of the quiz/KC slide by tweaking the Submit process. However, the so-called 'inactive' parts remain active for HTML output, so that is not a possibility anymore. There is also a big difference between the default setup of a quiz slide (one attempt) and a KC slide (infinite attempts). Sorry if this seems condescending as many users complain sometimes, but are you new to the Quiz features of Captivate? If the answer is yes, it could be a good idea to read some in-depth posts about the default setup and possible tweaking workflows. Here are some links;
let elem = document.querySelector('[aria-label="Submit "]');
let element = document.getElementById(elem.id+"c");
Thanks David, but you may have missed the last OP comment. It is not the 'state' which needs to be edited after submitting but the button should be disabled. Quite a different request.