How to hide the field in Sitecore WFFM 8.1 upgrade 3?

How to send the values to hidden fields programatically in C#?

  • additional note if that helps: you can configure wffm to populate fields using values that comes from url query string parameters – scFootsteps Nov 9 '16 at 11:14

Create a custom field like this:

public class MyHiddenField : Sitecore.Forms.Mvc.ViewModels.Fields.SingleLineTextField
        public override void Initialize()
            Visible = false;
            Value = "myvalue";

So you override the SingleLineTextField and:

  • set the Visible property to false
  • assign the Value property to .. whatever you want
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.