Using itemref to select checkbox labels and other 'hidden' items

I’m trying to use an itemref control to select label items associated with checkboxes under Freeway 6. Unfortunately Freeway is only returning the parent div and the checkbox itself in the resulting menu. Other than making and populating the menu myself manually is there any way to force the itemref to return a reference to the label object?

For example;

will retur a menu;
item1 ← the parent DIV
item2 ← the checkbox

It would appear that there are certain items in Freeway that can’t be accessed like this. Horizontal rules are another.
Regards,
Tim.


actionsdev mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Hi Tim,

Labels and rules aren’t FWItem objects so won’t show up in itemrefs.

If you’re working on something that adds data to label then it would be worth getting the user to select the input item and then looking for the label in the output to see if there’s one there. A couple of things to note: inflow checkboxes and radio buttons don’t automatically generate labels and labels for an input item aren’t necessarily parents of the input item.

Hope this helps,

Joe


actionsdev mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Does a label show up as a tag in the fwDocument.fwTags? You may be able to select the checkbox and then work backward at the time of publishing. Trouble is, it is perfectly legal for a single form element to have more than one label associated with it. The for attribute isn’t page-exclusive in that direction, just the id in the opposite direction. This may be a non-issue in a normal Freeway layout, though.

Walter

On Feb 17, 2014, at 9:59 AM, Joe Billings wrote:

Hi Tim,

Labels and rules aren’t FWItem objects so won’t show up in itemrefs.

If you’re working on something that adds data to label then it would be worth getting the user to select the input item and then looking for the label in the output to see if there’s one there. A couple of things to note: inflow checkboxes and radio buttons don’t automatically generate labels and labels for an input item aren’t necessarily parents of the input item.

Hope this helps,

Joe


actionsdev mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


actionsdev mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Thanks Joe. I expected as much.

Is there any way that I can detect if something like an HR is present at design time (so before the page is published) so I can offer this as a target in the Action UI?

Thanks in advance,
Tim.

On 17 Feb 2014, at 14:59, Joe Billings wrote:

Labels and rules aren’t FWItem objects so won’t show up in itemrefs.

If you’re working on something that adds data to label then it would be worth getting the user to select the input item and then looking for the label in the output to see if there’s one there. A couple of things to note: inflow checkboxes and radio buttons don’t automatically generate labels and labels for an input item aren’t necessarily parents of the input item.

Hope this helps,


actionsdev mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Hi Walter,
Yes, I can get to the tag at publish time without issue. My issue is that I wanted to offer a UI that reflected the state of the item the Action was applied to so allowed users to select the item to target. I may have to rethink the interface a tad to make it a little more generic.
Thanks,
Tim.

On 17 Feb 2014, at 15:03, Walter Lee Davis wrote:

Does a label show up as a tag in the fwDocument.fwTags? You may be able to select the checkbox and then work backward at the time of publishing. Trouble is, it is perfectly legal for a single form element to have more than one label associated with it. The for attribute isn’t page-exclusive in that direction, just the id in the opposite direction. This may be a non-issue in a normal Freeway layout, though.


actionsdev mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Nope, sorry :frowning: I’ll file a suggestion though.

Joe


actionsdev mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Thanks.

On 17 Feb 2014, at 15:54, Joe Billings wrote:

Nope, sorry :frowning: I’ll file a suggestion though.


actionsdev mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options