Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > RocketCake
Checkbox Validation

bernie
Registered User
Quote
2022-03-11 19:14:37

Hello.

1. Issue

Due to the european "General Data Protection Regulation" it is necessary to offer a legal notice to accept.

Therefore I wanted to insert into contact.php a validation for a checkbox:

<input name="GDPR" type="checkbox" value="" title="" required="required" id="checkbox_12077a6" >

I couldn't change it in the "HTML-Code Dialog". So I changed it in notepad++.

But it was not saved in contact.php?


2. Issue

By clicking the "General Data Protection Regulation" link the GDPR-Site is displayed.

When I click back to the form (menu-button), all filled-in information (name, email, message) are gone.

Well, I think there is a script necessary. What kind? JS, CSS, PHP, etc.?


Thanks.


niko
Moderator
Quote
2022-03-14 07:41:03

About 1: Yes, this is already on the list and will be fixed with the next update. But you can also do this without manually editing the html afterwards: Just right-click the element, select "HTML Code..." -> "additional attributes" and enter "required ="required"".

About 2: Usually, you do this with PHP, but yes, you can also do this with JS if you like.


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "Int?rnational" (you are not logged in)


Text:

 

  

Possible Codes


Feature Code
Link [url] www.example.com [/url]
Bold [b]bold text[/b]
Image [img]http://www.example.com/image.jpg[/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]

Emoticons


   






Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact