# Disabling User Input in a Wizard Step

## Environment

<table>
 <tr>
  <td>Product</td>
  <td>Telerik UI for ASP.NET MVC Wizard</td>
 </tr>
 <tr>
  <td>Progress Telerik UI for ASP.NET MVC version</td>
  <td>Created with the 2023.1.117 version</td>
 </tr>
</table>

## Description

I'm building a Wizard in which the final step makes all previous steps and their controls visible so that users can review their inputs and selections. At this point, none of the controls must be editable, selectable, or clickable.

## Solution

Currently, the Wizard and the Form do not deliver methods that disable all of their internal editors.

Therefore, the most straightforward way is to overlay the Wizard's Form:

1. Subscribe to the [`Activate` event](https://docs.telerik.com/kendo-ui/api/ui/wizard/events/activate) of the component.

   ```Razor
       .Events(ev => ev.Activate("onActivate"))
   ```

2. In the JavaScript handler check, use a conditional statement to check whether the last step of the Wizard is activated.

3. If activated, select its `form` element with jQuery.

4. Use the [`getBoundingRect` method](https://developer.mozilla.org/en-US/docs/Web/API/Element/getBoundingClientRect) of the Web API to get the position of the form on the page.

5. Use the form's position to append a `div` that has the same position and size as the form but with a `transparency`, greater that the `z-index`, and `position:absolute`.

   ```JS
       function onActivate(e){
           if(e.sender.currentStep.options.index==e.sender.currentStep.options.totalSteps-1){
               var form = e.sender.currentStep.form.element;
               var rect = form[0].getBoundingClientRect();
               var width = $(form).width();
               var height = $(form).height();
               $(body).append(`<div id="overlay" style=' z-index:1000; position:absolute; top:${rect.top}px; left:${rect.left}px; width:${width}px; height:${height}px; background-color:rgba(127,127,127,0.3)'></div>`)
           }
       }   
   ```

To explore the complete example, see the project on how to [display an overlay over the last step of the Wizard](https://netcorerepl.telerik.com/GnYmuwPr40mcbfL331).

## More ASP.NET MVC Wizard Resources

* [ASP.NET MVC Wizard Documentation](https://www.telerik.com/aspnet-mvc/documentation/html-helpers/navigation/wizard/overview)

* [ASP.NET MVC Wizard Demos](https://demos.telerik.com/aspnet-mvc/wizard/index)

* [ASP.NET MVC Wizard Product Page](https://www.telerik.com/aspnet-mvc/wizard)

* [Telerik UI for ASP.NET MVC Video Onboarding Course (Free for trial users and license holders)](https://www.telerik.com/aspnet-mvc/documentation/getting-started/video-onboarding)

* [Telerik UI for ASP.NET MVC Forums](https://www.telerik.com/forums/aspnet-mvc)

## See Also

* [Client-Side API Reference of the Wizard's for ASP.NET MVC](https://docs.telerik.com/kendo-ui/api/ui/wizard)
* [Server-Side API Reference of the Wizard for ASP.NET MVC](https://docs.telerik.com/aspnet-mvc/api/wizard)
* [Telerik UI for ASP.NET MVC Breaking Changes](https://www.telerik.com/aspnet-mvc/documentation/backwards-compatibility/2023-backwards-compatibility)
* [Telerik UI for ASP.NET MVC Knowledge Base](https://docs.telerik.com/aspnet-mvc/knowledge-base)
