# Editing consent form - custom consent form

**URL:** <https://community.piwik.pro/t/editing-consent-form-custom-consent-form/225>\
**Category:** Privacy\
**Created:** [August 9, 2021, 1:05pm UTC](https://community.piwik.pro/t/editing-consent-form-custom-consent-form/225 "2021-08-09T13:05:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Peter\_Dobrovka](https://dub1.discourse-cdn.com/flex005/user_avatar/community.piwik.pro/peter_dobrovka/32/95_2.png) [@Peter\_Dobrovka](https://community.piwik.pro/u/Peter_Dobrovka)\
**Post date:** [August 9, 2021, 1:05pm UTC](https://community.piwik.pro/t/editing-consent-form-custom-consent-form/225/1 "2021-08-09T13:05:59Z")

</div>

Hello,

I´m just getting started with Piwik Pro Core so my Boss and me chose which consent form to use.  
We would like to use the bottom bar, however the sliders only show up when clicking on “show detailed settings”.

We would like to rather show the sliders in the bottom bar by default instead, as you can make them pre-selected by default, so the user only has to click accept. Visually that’s also more appealing.

An alternative would also be to make a complete custom consent form, is this possible using the API?

Thanks in advance  
Peter Dobrovka

 ![2021-08-09_15h07_06](https://europe1.discourse-cdn.com/flex005/uploads/piwikpro/original/1X/1b5e1152a7765400892e940c52cefb4b4c37a288.png)

---

<div class="post-metadata">

**Author:** ![piotr](https://dub1.discourse-cdn.com/flex005/user_avatar/community.piwik.pro/piotr/32/1654_2.png) [@piotr](https://community.piwik.pro/u/piotr)\
**Post date:** [August 9, 2021, 3:31pm UTC](https://community.piwik.pro/t/editing-consent-form-custom-consent-form/225/2 "2021-08-09T15:31:39Z")

</div>

Hi @Peter_Dobrovka, welcome to the community!

Although there’s no switcher in the user interface the behavior you’re looking for is easily achievable with a custom JS tag (Piwik PRO Tag Manager → Add new tag → Custom asynchronous tag) with the following code:

```auto
<script>
  document.querySelector("#ppms_cm_content_expander_hide_btn").setAttribute("class", "ppms_cm_content_expander_hide_btn expanded");
  document.querySelector("#ppms_cm_content_expander_show_btn").setAttribute("class", "ppms_cm_content_expander_show_btn expanded");
</script>

```

This should be fired on dataLayer event `ppms.cm:getComplianceSettings`

Also, FYI: you can code your own consent form. I’d recommend using a template that already talks to our API: [Custom consent form | Piwik PRO help center](https://help.piwik.pro/support/consent-manager/custom-consent-form/)

If you go with custom consent, make sure to change the settings under **Administration → Websites & apps → _your site_ → Privacy → enable “Use a custom consent form”** so that the default box is suppressed.

---

<div class="post-metadata">

**Author:** ![Peter\_Dobrovka](https://dub1.discourse-cdn.com/flex005/user_avatar/community.piwik.pro/peter_dobrovka/32/95_2.png) [@Peter\_Dobrovka](https://community.piwik.pro/u/Peter_Dobrovka)\
**Post date:** [August 10, 2021, 6:28am UTC](https://community.piwik.pro/t/editing-consent-form-custom-consent-form/225/3 "2021-08-10T06:28:45Z")

</div>

Thank you very much for the fast response,  
that’s all the information i needed 🙂
