Problem/Motivation

When you don't tick the 'Privacy policy' checkbox in a form, the validation message contains the HTML tag

<a href="//www.iubenda.com/privacy-policy/7919456" class="iubenda-nostyle iubenda-embed iubenda-noiframe" title="Privacy Policy">Privacy Policy</a> field is required.

message

it is preferable to remove the tag.

Steps to reproduce

Install iubenda_integration module and add the form id user_login_form in the Iubenda's form settings.

Proposed resolution

TBD

Remaining tasks

TBD

User interface changes

TBD

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

robertoperuzzo created an issue. See original summary.

alexanderj’s picture

Assigned: Unassigned » alexanderj

I will work on it.

alexanderj’s picture

Assigned: alexanderj » Unassigned
Status: Active » Needs review

I made the change to remove the HTML tag from the error message, please review

robertoperuzzo’s picture

Assigned: Unassigned » robertoperuzzo
robertoperuzzo’s picture

StatusFileSize
new73.18 KB

Thank you @alexanderj. I was thinking to change the form element title and add a description in order to improve the user interface giving more "readable" text like that

login form

What do you think?

robertoperuzzo’s picture

Assigned: robertoperuzzo » Unassigned
alexanderj’s picture

Status: Needs review » Needs work

I liked it, it's a great idea, making it easier for the user to understand is in my opinion the best way.

robertoperuzzo’s picture

Version: 3.x-dev » 4.x-dev
Assigned: Unassigned » robertoperuzzo

robertoperuzzo’s picture

Status: Needs work » Fixed
robertoperuzzo’s picture

Assigned: robertoperuzzo » Unassigned

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.