Didomi - Developers documentation
  • Introduction
  • SDKs
    • Introduction
    • Web SDK
      • Getting started
      • Tags and vendors management
        • Tags management
          • Events & Variables
            • Deprecated
            • Custom events
          • Tag managers
            • Adobe Launch/DTM
            • Eulerian
            • Google Tag Manager
              • Configure the Didomi / GTM integration
              • Didomi's GTM template
            • Tealium
            • Other tag managers
        • Custom Didomi <script> tags
        • Third-party integrations
          • Google Ad Manager / AdSense
            • GDPR via Non-Personalized Ads
              • Share consent and load/refresh ads
              • Share consent without loading or refreshing ads
            • US states laws
          • Google Consent Mode V2
          • Kameleoon
          • Piano Analytics (AT Internet)
          • Prebid
            • GDPR via IAB TCF
            • US states laws
          • Salesforce DMP (Krux)
        • IAB frameworks
        • Programmatic API
      • Configuration
        • Bots (SEO & Performance tools)
        • Configuration by URL
        • Cookies and storage
        • Custom domains for events
        • Notice
          • Behavior
          • Interactions
          • Look and feel
        • Preferences
        • Theme
      • AB tests
      • Custom domain
        • Domain delegation
        • Reverse proxy
      • Share consents between domains
      • Share consents across devices
      • Pass user choices in query string
      • Serve Didomi assets from your domain
      • Reference
        • API
          • Deprecated
        • Events
      • Performance
    • Mobile and TV SDKs
      • Android and Android TV
        • Setup
        • Logging
        • Reference
          • API
            • Deprecated
          • Events
        • Versions
      • iOS and tvOS
        • Setup
        • Logging
        • App Tracking Transparency (iOS 14.5+)
        • Reference
          • API
            • Deprecated
          • Events
        • Versions
      • Unity
        • Setup
        • Reference
        • Versions
        • Troubleshooting
      • React Native
        • Setup
        • Reference
          • Deprecated
        • Versions
      • Flutter
        • Setup
        • Reference
        • Versions
      • Consent notice
        • Getting started
        • Customize the notice
        • Customize the preferences popup
        • Customize the theme & UI
        • Load notice by ID
      • Third-party SDKs
      • Share consents across devices
      • Share consent with WebViews
      • Google Consent Mode v2
      • FAQ
    • AMP SDK
      • Blocking Behaviors
        • Load immediately on page load
        • Load only after consent (positive or negative)
        • Load only after positive consent
      • Consent status for vendors
    • Didomi Consent String
      • Didomi Consent String Structure
      • Purposes & Vendors Numerical IDs
      • Consent String Examples
      • Decoding tools
    • Help & Support
  • API
    • Introduction
      • Authentication
      • Errors
      • Pagination
      • Filters
      • Caching
      • Rate limiting
      • Quotas
      • Translations
    • Data Manager
      • Regulations
      • Configuration Tree
      • Purposes
        • Purposes & Vendors Numerical IDs
      • Preferences Library
      • User Rights
    • Widgets
      • Consent notices
        • Notices
        • Configurations
        • Multi-Regulation Configurations
          • Migration of Existing Notices and API Updates
        • Deployments
        • Tutorials
          • Create and publish a consent notice
          • Create and publish a multi-regulation consent notice
      • Privacy widgets
        • Create a widget
        • Retrieve widgets
        • Edit a widget
          • Content & Design
            • Themes & Shapes
            • Components
              • auth
              • dsar_form
              • footer
              • header
              • preference
              • preference_value
              • save
              • section
              • sections
            • Options
          • Purposes & preferences
          • Settings
        • Deploy a Widget
          • Use your own subdomain
          • Use your own domain
          • Implement an embeddable widget on your website
        • Authentication
          • Manage authentication providers
          • Authenticate your end-user
        • Archive a widget
        • Headless widgets
          • Public Methods
          • Custom elements
          • Custom events
          • Event listeners
        • Tutorial
          • Launch a Preference Center from a mobile app
    • Compliance Reports
      • Properties
      • Reports
      • CSV format reference
      • Websites
    • Consents and Preferences
      • Events
        • Generate IAB TCF consent string
      • Links
      • Proofs
      • Tokens
      • Secrets
      • Users
      • Tutorial
        • Collect and operate data
    • Privacy Requests
      • Requests
      • Notes
      • Links
      • Emails
  • Integrations
    • Introduction
      • Quotas
    • Generic integrations
      • Batch export
        • Destinations
          • AWS S3 Bucket (owned by Didomi)
          • GCP Storage Bucket
        • Exported data
          • Notices consents
        • Logs
      • Webhooks
      • Batch import
      • Analytics export
        • Destinations
          • AWS S3 Bucket (owned by Didomi)
          • GCP Storage Bucket
    • Third-party apps
      • CMP integrations
        • Didomi-mParticle integration for your CMP
        • Deploy Didomi’s SDK for your Adobe Commerce website
      • Preference Management Platform integrations
        • Actito
        • Adobe Campaign Classic
        • Adobe Experience Cloud
        • Adobe Marketo Engage
        • Adobe Source Connector
        • Braze
        • Dotdigital
        • Hubspot
        • Mailchimp
        • Microsoft Dynamics 365
        • Salesforce Marketing Cloud
        • Salesforce Sales & Service Cloud
        • Selligent
        • Brevo (ex Sendinblue)
    • Tutorials
      • Configure a HTTP webhook
      • Configure a batch export
      • Configure an analytics export
    • Emailing
      • Configurations
        • Actito Email
        • Actito SMS
        • Adobe Campaign Classic
        • Adobe Campaign Standard
      • Emails
        • Templates
        • Manage your templates
Powered by GitBook
On this page
  1. API
  2. Widgets
  3. Privacy widgets
  4. Edit a widget
  5. Content & Design
  6. Components

dsar_form

PreviousauthNextfooter

Last updated 1 year ago

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

Element
Description
Component options

card

Container of Privacy request widget

formTitle

Title of widget

firstStepButton

Button to validate first step of form

backButton

Button to go back to first step

secondStepButton

Button to submit the form

formHint

Hint at the bottom of second step

sendRequestErrorMessage

Error message when the request was not created after submitted

successMessageTitle

Title in confirmation step

successMessageDescription

Description in confirmation step

closeIcon

Close button to go back to first step from confirmation step

formButtonsWrapper

Wrapper of buttons in second step

backButtonWrapper

Wrapper of back button in second step

secondStepButtonWrapper

Wrapper of confirm button in second step

loader

Loader in confirm button in second step when clicked

userRightOptions

Element
Description
Component options

title

Title in second step

description

Description in second step

radioOptions

Radio buttons in first step

radioOptions

Element
Description
Component options

label

Label of a radio button

backgroundColor

Background color of a radio button

circleColor

Radio circle of a radio button

borderRadius

Border radius of a radio button

padding

Padding of a radio button

circleBackgroundColor

Background of radio circle of a radio button

borderColor

Border of radio circle of a radio button

formFieldsOptions

Element
Description
Component options

formFieldsOptions

Text input

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"
}

radioOptions
DidomiCardOptions
DidomiTextOptions
DidomiButtonOptions
DidomiButtonOptions
DidomiButtonOptions
DidomiTextOptions
DidomiTextOptions
DidomiTextOptions
DidomiTextOptions
DidomiStyle
DidomiStyle
DidomiStyle
DidomiStyle
DidomiStyle
DidomiStyle
DidomiStyle
DidomiStyle
ComponentOptionValue
ComponentOptionValue
ComponentOptionValue
ComponentOptionValue
ComponentOptionValue
ComponentOptionValue
DidomiFormFieldsOptions