You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've found why that not working. That because in razorflow.wrapper.min.js
options.value is not pass correct value from setting. Value always show 'undefined'
(null==(__t=options.value===!0?"checked":"")?"":__t)
I've fixed on my own way.
Edit FormComponent.php by chage array property name from 'value' to another and this is my code
+$opts['options'] = array('isCheck'=>$value); // New code added.
-$opts['options'] = array('value'=>$value); // The original code.
2 Edit razorflow.wrapper.min.js
+(null==(__t=options.isCheck===!0?"checked":"")?"":__t) // New code edited.
-(null==(__t=options.value===!0?"checked":"")?"":__t) // Original code
And that work fine. I'm not sure this problem was issue on javascript version or not?
The text was updated successfully, but these errors were encountered:
sospixs
changed the title
(PHP version) checkbox unable to set default "checked"
(PHP version) Checkbox unable to set default "checked"
Nov 20, 2014
sospixs
changed the title
(PHP version) Checkbox unable to set default "checked"
(PHP version) Checkbox unable to set default "checked" (Fixed by my own)
Nov 20, 2014
Example
$form1->addCheckboxField('ckb_flag','Label',true);
I've found why that not working. That because in razorflow.wrapper.min.js
options.value is not pass correct value from setting. Value always show 'undefined'
(null==(__t=options.value===!0?"checked":"")?"":__t)
I've fixed on my own way.
+$opts['options'] = array('isCheck'=>$value); // New code added.
-$opts['options'] = array('value'=>$value); // The original code.
2 Edit razorflow.wrapper.min.js
+(null==(__t=options.isCheck===!0?"checked":"")?"":__t) // New code edited.
-(null==(__t=options.value===!0?"checked":"")?"":__t) // Original code
And that work fine. I'm not sure this problem was issue on javascript version or not?
The text was updated successfully, but these errors were encountered: