<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — Unchecked checkbox form value not set in Ajax call]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=6401&amp;type=atom" />
	<updated>2016-08-06T01:32:47Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=6401</id>
		<entry>
			<title type="html"><![CDATA[Re: Unchecked checkbox form value not set in Ajax call]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=25968#p25968" />
			<content type="html"><![CDATA[<p>Thanks @cambell and @itronics.</p><p><strong>Lesson:</strong> New modules and code modifiers should keep this fact in mind when using / dealing with checkboxes - in FA, use check_value() before using it....</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2016-08-06T01:32:47Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=25968#p25968</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Unchecked checkbox form value not set in Ajax call]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=25964#p25964" />
			<content type="html"><![CDATA[<p>Assuming that folk use the check_value(...) function in ui_input.inc all would be fine.&nbsp; Without this mod requires that all checkboxes be explicitly handled via intentional use of the check_value function or similar.&nbsp; This change makes the humble checkbox handling the same as other input controls which have value.</p><p>I&#039;ll be keeping this functionality in my fork.</p>]]></content>
			<author>
				<name><![CDATA[cambell]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=19447</uri>
			</author>
			<updated>2016-08-05T08:02:41Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=25964#p25964</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Unchecked checkbox form value not set in Ajax call]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=25963#p25963" />
			<content type="html"><![CDATA[<p>Well, this is just how HTML POST method works in browsers for checkbox type input field (not ticked checkbox is ignored).&nbsp; Changing it will lead to problems in forms which just look for POST variable existence,&nbsp; which is standard way of dealing with checkbox controls.</p><p>Janusz</p>]]></content>
			<author>
				<name><![CDATA[itronics]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=89</uri>
			</author>
			<updated>2016-08-05T07:39:14Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=25963#p25963</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Unchecked checkbox form value not set in Ajax call]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=25960#p25960" />
			<content type="html"><![CDATA[<p>While writing a module I found that the checkbox value is not set for unchecked checkboxes.&nbsp; I propose a fix to js/utils.js such that unchecked checkboxes come through to php with a value of &#039;&#039;.</p><p>A pull request is here:</p><p>https://github.com/FrontAccountingERP/FA/pull/15</p>]]></content>
			<author>
				<name><![CDATA[cambell]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=19447</uri>
			</author>
			<updated>2016-08-05T04:50:37Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=25960#p25960</id>
		</entry>
</feed>
