Home:ALL Converter>How to get value of checkbox that was generated client side

How to get value of checkbox that was generated client side

Ask Time:2015-05-03T21:45:19         Author:Raymond Briggs

Json Formatter

I have a form in Sitefinity and a custom field that when document ready, runs javascript that creates a checkbox client side. When the form is posted back, I would like to get the value of the client side generated checkbox but I can't seem to do it.

I have tried httpcontext.current.request.form["myCheckbox"] but it always returns a null value. I get the feeling Sitefinty works differently.

How do I go about getting the value of the client generated checkbox in Sitefinity after submit is clicked?

Author:Raymond Briggs,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/30014535/how-to-get-value-of-checkbox-that-was-generated-client-side
yy