Hi Luke,
Thank you for your message.
1) Since you haven't mentioned your version and based on your question I'm assuming you are Kentico 7. In version 7 the validation takes places even if the field is not visible and unfortunately there is no workaround for this apart of creating a new custom form control as per -
devnet.kentico.com/docs/7_0/devguide/developing_form_controls.htm
In Kentico 8 this feature has been addressed and it works the way you want by default so that validation will take in place only if the field is visible on the form.
2) If you want to add a current user's username to the Notification e-mail you can simply use macro like: {% CurrentUser.UserName |(identity)GlobalAdministrator%}
In Layout of notification e-mail you can use any macro or K# you like. You can even use custom macros if you like.
3) By default checkbox control cannot be set like this but you can make very simply modification to the Check box form control which will enable you this. You can go to Development -> Form controls and clone Check box control. Then add a validation method for it like:
public override bool IsValid()
{
if (checkbox.Checked){
return true;
}
else
{
// Set form control validation error message.
this.ValidationError = "You need to agree to continue";
return false;
}
With this modificatio it will work as a confirmation button.
Let us know if you need anything else.
Kind regards,
Richard Sustek