dsar_form
LayoutComponent
❌ Theme ✅ Options ❌ Content & Translations
First, take a look at the mapping between options
properties and widget elements in these three visuals below.



To edit Privacy request widget design, you need to edit the layout-component dsar_form
by sending a PATCH request on /widgets/layout-components/{layout-component-id}
and specifying options in options
property.
Be careful when you are editing the options
property. This is a JSONB and by design, you need to fill in every properties already added every time you edit this object.
PATCH https://api.didomi.io/widgets/layout-components/{layout_component_id}?organization_id=YOUR_ORG_ID&widget_id=YOUR_WIDGET_ID
{
"type": "dsar_form",
"organization_id": "YOUR_ORGANIZATION_ID",
"options": {
...
}
}
General options
sendRequestErrorMessage
Error message when the request was not created after submitted
userRightOptions
radioOptions
formFieldsOptions
We have gathered all elements and their options in the following object. You can use it to edit the dsar_form
options by sending a PATCH request on /widgets/layout-components/{layout-component-id}
.
PATCH https://api.didomi.io/widgets/layout-components/{layout_component_id}?organization_id=YOUR_ORG_ID&widget_id=YOUR_WIDGET_ID
{
"type": "dsar_form",
"options": {
"formTitle": {
"style": {
"default": {}
}
},
"firstStepButton": {
"style": {
"default": {}
},
"text": {
"style": {
"default": {}
},
"content": {}
}
},
"secondStepButton": {
"style": {
"default": {}
},
"text": {
"style": {
"default": {}
},
"content": {}
}
},
"backButton": {
"style": {
"default": {}
},
"text": {
"style": {
"default": {}
},
"content": {}
}
},
"formHint": {
"style": {
"default": {}
},
"content": {}
},
"sendRequestErrorMessage": {
"style": {
"default": {}
},
"content": {}
},
"successMessageTitle": {
"style": {
"default": {}
},
"content": {}
},
"successMessageDescription": {
"style": {
"default": {}
},
"content": {}
},
"closeIcon": {
"style": {
"default": {}
}
},
"formButtonsWrapper": {
"style": {
"default": {}
}
},
"backButtonWrapper": {
"style": {
"default": {}
}
},
"secondStepButtonWrapper": {
"style": {
"default": {}
}
},
"loader": {
"style": {
"default": {}
}
},
"userRightsOptions": {
"title": {
"style": {
"default": {}
}
},
"description": {
"style": {
"default": {}
}
},
"radioOptions": {
"label": {
"style": {
"default": {}
}
},
"backgroundColor": "",
"circleColor": "",
"borderRadius": "",
"padding": "",
"circleBackgroundColor": "",
"borderColor": ""
}
},
"formFieldsOptions": {
"label": {
"style": {
"default": {}
}
},
"description": {
"style": {
"default": {}
}
},
"hint": {
"style": {
"default": {}
}
},
"errorMessage": {
"style": {
"default": {}
}
},
"inputOptions": {
"fontColor": "",
"fontSize": "",
"fontWeight": "",
"lineHeight": "",
"borderRadius": "",
"borderColor": "",
"borderWidth": "",
"errorBorderColor": "",
"placeholderColor": "",
"backgroundColor": ""
}
}
},
"organization_id": "YOUR_ORGANIZATION_ID"
}
Last updated