Problem/Motivation

In many cases site owners want to be able to customize the text of buttons in IEF, for example:

My customer has two issues with the way that inline entity forms labeling works:

  1. Wherever "new" appears we need to remove that... so, instead of "Add new TA provider/consultant" it should say "Add TA provider/consultant". This happens both in the field and the button for submission
  2. Instead of "Create" in the input buttons, it should say "Add"

In much the same way as we have custom labels (singular and plural), is it possible to override the button texts?

(example from the original posing of this issue)

Proposed resolution

In 'manage form display' when inline entity form is selected for a field provide an 'override submit button text' option.

Remaining tasks

  1. Create patch
  2. Review patch
  3. Test patch

User interface changes

In 'manage form display' when a table row using IEF is expanded the last option in the list will be 'override submit button text' with a checkbox. When checked the behavior will follow the same pattern as when the 'override labels' option is checked, ie. fields to override the submit text will expand.

API changes

?

Data model changes

?

Comments

NancyDru created an issue. See original summary.

tkoleary’s picture

Title: Button text options » Add the ability to customize the text of submit buttons
Version: 7.x-1.x-dev » 8.x-1.x-dev
Issue summary: View changes
Issue tags: +ux
tkoleary’s picture

Issue summary: View changes
nkoporec’s picture

Status: Active » Closed (outdated)

This feature is now implemented in latest dev. branch so setting this issue as outdated.

NancyDru’s picture

Was it backported to 7.x?

Rop’s picture

Status: Closed (outdated) » Active

I could be wrong but using version 8.x-1.0-rc6 two years later I do not see this feature.
Has it been removed?
I can overwrite the label but I can not customise the full text of the submit button. It still says: "create.." and then whatever you set as a label, i.e. "create new record".

jcisio’s picture

Status: Active » Closed (duplicate)
Rop’s picture

Status: Closed (duplicate) » Active

Hi Jcisio
Sorry to overwrite your status change again but the issue you refer to seems to be a completely different issue.
#2830136 is about submitted values not being saved while this (#2608510) is about not having the option to overwrite the label for the submit button fully.
The submit function itself works fine. Also the overwrite of the label works fine except that it is only partial. The button always says: "create.."

jcisio’s picture

@Rop yes you are absolutely correct. Sorry I was too hurry in my search.