Hi Salvatore,
you are correct.
The custom text can not be used to replace the field label.
I think it is very difficult (probably not possible) to achieve this result with custom css.
Currently this is only possible with custom JavaScript.
If you want to provide a link to your privacy policy, than currently you have to split the process in two parts.
Part 1: You use the custom text to place your text with the link above the checkbox (adapt your texts accordingly).
Part 2: You use the checkbox label as the text, where the user actually consents.
If you want to use custom JavaScript then do the following:
1. Wrap the custom text into a p with class="privacy-text"
2. Add the following JavaScript
Code:
jQuery(document).ready(
function() {
let privacyTextContainer = jQuery('.privacy-text');
// get privacy text
let privacyText = privacyTextContainer.text();
// set privacy text in field label
jQuery('#modvisform125consent-privacylbl').text(privacyText);
// remove privacy text from custom text position
privacyTextContainer.text('');
});
See our documentation on how to add custom JavaScript:
docs.joomla-4.visforms.vi-solutions.de/e...add-script-overview/
Regards,
Aicha