Not in the bare application, no. I just tried several tricks that used to work, and they don’t. Please try my PHP Form Action, which might do what you need, although it forces a certain method of working (the post-back pattern).
Walter
On Jan 13, 2013, at 3:21 PM, Carlos Feliciano wrote:
Is there any way I can set a checkbox checked attribute programmatically with PHP? For instance:
<?PHP if ($is_subscribed) echo "checked"; ?>
I want to somehow use that in my checkbox in Freeway Pro.
There is one way you can do it. You need to place the checkbox inline, so draw an HTML item, double click inside it, then go to Insert>Checkbox. You’ll now be able to select the checkbox and open the Extended dialog (Command-Option-X). Enter the PHP into the Name field (use single quotes instead of doubles) and leave the Value field blank.
That’s with the PHP added in the Name field in an Extended attribute.
Walter
On Jan 13, 2013, at 5:35 PM, Joe Billings wrote:
There is one way you can do it. You need to place the checkbox inline, so draw an HTML item, double click inside it, then go to Insert>Checkbox. You’ll now be able to select the checkbox and open the Extended dialog (Command-Option-X). Enter the PHP into the Name field (use single quotes instead of doubles) and leave the Value field blank.
That’s with the PHP added in the Name field in an Extended attribute.
Walter
On Jan 13, 2013, at 5:35 PM, Joe Billings wrote:
There is one way you can do it. You need to place the checkbox inline, so draw an HTML item, double click inside it, then go to Insert>Checkbox. You’ll now be able to select the checkbox and open the Extended dialog (Command-Option-X). Enter the PHP into the Name field (use single quotes instead of doubles) and leave the Value field blank.
That’s with the PHP added in the Name field in an Extended attribute.
Walter
On Jan 13, 2013, at 5:35 PM, Joe Billings wrote:
There is one way you can do it. You need to place the checkbox inline, so draw an HTML item, double click inside it, then go to Insert>Checkbox. You’ll now be able to select the checkbox and open the Extended dialog (Command-Option-X). Enter the PHP into the Name field (use single quotes instead of doubles) and leave the Value field blank.
Here’s an Action I just made to do this, also (optionally) adds the Rails-style hidden form field in front of the checkbox so you can use your checkbox to un-set things, too.
That’s with the PHP added in the Name field in an Extended attribute.
Walter
On Jan 13, 2013, at 5:35 PM, Joe Billings wrote:
There is one way you can do it. You need to place the checkbox inline, so draw an HTML item, double click inside it, then go to Insert>Checkbox. You’ll now be able to select the checkbox and open the Extended dialog (Command-Option-X). Enter the PHP into the Name field (use single quotes instead of doubles) and leave the Value field blank.