Change caption for Save button

SUGGESTED

I have a requirement where I want to change the "default" Save button on a custom ASP page to "Confirm" rather than "Save".  Is it possible to do that?

Can someone point me in the right direction? 

I know that I can go into translations and change it there.  However, that will change the caption for the button throughout the system and I only want it on this one page.

The user is coming into this page in "Edit" mode.  They need to "Confirm" the data on the screen.

I want to use the Save button so I don't have to recreate it and I plan to have the ASP page handle some other requirements when it is in the Save mode.

I am having a brain block on this so any assistance would be greatly appreciated.

Thank you!!!!

  • 0
    SUGGESTED

    Hi Michele

    If it is for a Custom Entity and you used the Entity Wizard to build it, edit the xxxxxSummary.asp file and change the "Save" bit to say "Confirm"

    Container.AddButton(CRM.Button("Confirm", "save.gif", ...................

  • 0 in reply to Matthew Shaw

    Thanks Matthew.  It is not a custom entity...just a custom asp page.  :-)

    It is for the Order entity.  It is a page that confirms the order location.

    (I used an asp page in a workflow step because the workflow step was not kicking off a change to trigger table level scripts.)

    So it is the default Save button on a custom asp page.  

    Anyway to get a hold of that and change it from Save to Confirm?

    Thanks!

  • 0 in reply to Michele Gaw

    Posting back on this as I was able to get a hold of that default save button and change it from Save to Confirm.

    I went to the custom content area of my block and added this within crm.ready

    document.getElementsByClassName("er_buttonItem")[1].innerHTML = '<font style="text-decoration:underline">C</font>onfirm'

    The button now says Confirm rather than Save.  :-)

  • 0 in reply to Michele Gaw
    SUGGESTED

    This should work, but the hotkey for the Save will still be Alt S. Adding the underline for C will suggest the C is the hotkey but that will trigger the cancel. I would not put the underline on the C but just change the label text in the way shown.

  • 0 in reply to Vega

    Vega:  Ok, I see what you are saying.  Thank you for the recommendation!

    I took my direction from how the Save button was done...so that makes perfect sense in regards to the Cancel button.

    I have updated the script as follows...

    document.getElementsByClassName("er_buttonItem")[0].innerHTML = 'Confirm'

    Thank you for your assistance!!