save

LayoutComponent ❌ Theme ✅ Options ✅ Content & Translations

To edit a save element, you need to edit the layout-component save and send a PATCH request on /widgets/layout-component/{layout-component-id} and specify the following options in the options property.

Element
Description
Component options

guidelineText

Text element that appears above Save button when changes are detected in the form.

saveButton

Save button element.

card

Container of Save button.

{
    "guidelineText": {
        "content": {
            "en": "You have {numberOfPendingConsent} changes pending, do you want to save?",
            "fr": "Vous avez {numberOfPendingConsent} changements non enregistrés, voulez-vous sauvegarder?"
        }
    },
    "saveButton": {
        "text": {
            "content": {
                "en": "YOUR_LABEL",
                "fr": "VOTRE_LABEL"
            }
        }
    },
    "card": {
        "style": {
           "default": {
              "backgroundColor": "",
              "padding": "",
              "borderRadius": "",
              "borderWidth": "",
              "boxShadow": "",
              "margin": "",
           }
        }    
    }
}

Last updated