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:
- 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
- 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
- Create patch
- Review patch
- 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
Comment #2
tkoleary CreditAttribution: tkoleary at Acquia commentedComment #3
tkoleary CreditAttribution: tkoleary at Acquia commentedComment #4
nkoporecThis feature is now implemented in latest dev. branch so setting this issue as outdated.
Comment #5
NancyDruWas it backported to 7.x?
Comment #6
Rop CreditAttribution: Rop commentedI 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".
Comment #7
jcisio CreditAttribution: jcisio at Axess Open Web Services commentedI guess it duplicates #2830136: Changes are not saved for some submit buttons.
Comment #8
Rop CreditAttribution: Rop commentedHi 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.."
Comment #9
jcisio CreditAttribution: jcisio at Axess Open Web Services commented@Rop yes you are absolutely correct. Sorry I was too hurry in my search.