Open Closed

Override Save Button text #1756


User avatar
0
joe@tronactive.com created

How do you override the save button text in a modal? I am using Asp.NET MVC version.


4 Answer(s)
  • User Avatar
    0
    EngincanV created
    Support Team .NET Developer

    Hi, you can override the modal you want by creating the same .cshtml file under the same path and replace the code-blocks by your needs.

    For example, lets assume you want to change the save button's text of the Identity/User/EditModal.cshtml. You need to create the cshtml file in the same path (Pages/Identity/Users/EditModal.cshtml) and copy the original .cshtml file of the module and paste it into your page, then make the necessary changes.

    ...
            <div class="modal-footer">
                <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
                <button type="button" class="btn btn-primary">Submit</button> @* Save button text changed as Submit *@
            </div>
    ...
    

    For more information about Customizing UI, please check the documentation.

  • User Avatar
    0
    joe@tronactive.com created

    I am sorry, I should have clarified. I meant when using the helper method.

    <abp-modal-footer buttons="@(AbpModalButtons.Cancel|AbpModalButtons.Save)"></abp-modal-footer>

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    https://support.abp.io/QA/Questions/1558#answer-c761af8c-e5de-7517-0ff2-39fd922c3805

  • User Avatar
    0
    ServiceBot created
    Support Team Automatic process manager

    This question has been automatically marked as stale because it has not had recent activity.

Made with ❤️ on ABP v9.1.0-preview. Updated on December 13, 2024, 06:09