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.

Markdown supported.
Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)

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.

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • 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>

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

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

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • 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.

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.8.0-preview. Updated on September 09, 2026, 11:56
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.