I have a form where I want to submit a hidden value that is not seen (or editable) by the user.

Originally I was attempting to do it with something like:

`<input type="hidden" data-ng-model="data.selfscan" value="true">`

But looking into the issue and at previously asked/answered questions here, I learned that hidden input type doesn't work with AngularJS. So instead I needed to do something like this:

`<input type="text" data-ng-model="data.selfscan" value="true" data-ng-value="true" data-ng-show="false" />`

Unfortunately, that did not work either.

I saw another post about how I should initialize it, so I had

`<input type="text" data-ng-model="data.selfscan" data-ng-init="data.selfscan='true'" data-ng-show="false" />`

That seemed to do the trick in getting the value to appear in the form (at least when I viewed it by making the box visible), but unfortunately the init seemed to break another part of the form making the entire thing unsubmittable.

I've spent way too much time on what should be a simple thing, so I'm looking towards all of your expertise for help or suggestions of what else to try or what could be going wrong.