Jump to content

This topic is 8419 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

Here is my code (not exact):

[FMP-ValueList: abc, List=xyz]

<tr><td>[FMP-ValueListItem: Checked]</td></tr>[/FMP-ValueList]

Problem:

The value list item does not show up if it is not checked which is what it is suppose to do. The problem is that the html is showing up. In other words, a blank table row/cell shows up. Isn't the value list item that is not checked AND the related html between the [FMP-ValueList] and [/FMP-ValueList] for this value list item not suppose to show up.

The result I am getting is a bunch of blank table cells showing up between table cells that are filled with checked value list items. How do I make the HTML between [FMP-ValueList] and [/FMP-ValueList] disappear from value list items that are not checked?

Posted

Are you wanting the results displayed in one data cell or multiple data cells? If just one, try:

<tr><td>[FMP-ValueList: abc, List=xyz]

[FMP-ValueListItem: Checked][/FMP-ValueList]</td></tr>

Posted

MORE EXPLANATION Please: Actually, I am looking for multiple value list items to be placed in their own single cells.

I am trying to get every checked value list item into its own cell. This is working except for the items that are not checked. The unchecked items do NOT show up, but the html does (blank rows and cells that would have contained the vaule list item if it had been checked). I am wondering how to make the html (blank cells) disappear. The way I understand it is that everything, including the html between the [FMP-ValueList] and [/FMP-ValueList] should show up for checked items using [FMP-ValueListItem: Checked], but should not show up for unchecked items.

Here is some more of my code (Hope it is enough).

<table>

[FMP-ValueList: abc, List=xyz]

<tr>

<td>[FMP-ValueListItem: Checked]</td>

<td width="15"> </td>

<td width="15"> </td>

<td width="15"> </td>

<td width="15"> </td>

<td width="15"> </td>

</tr>

[/FMP-ValueList]

[FMP-ValueList: def, List=rst]

<tr>

<td>[FMP-ValueListItem: Checked]</td>

<td width="15"> </td>

<td width="15"> </td>

<td width="15"> </td>

<td width="15"> </td>

<td width="15"> </td>

</tr>

[/FMP-ValueList]

</table>

[ February 01, 2002, 03:09 PM: Message edited by: bowman ]

Posted

I do not use the fmp-valuelist. Inefficient if your were to ask me. Instead I use html to create my pop-ups, checkboxes and radio buttons. In conjunction with that I will use cdml to designate the fields into which the values selected from the html will be sent. This technique has never failed me. The "secret" is to have such fields in your web layout designated as "standard". This same field also can be set up as a fmp pop-up, radio, etc IN A DIFFERENT LAYOUT should that be needed for in-house work. Try it. You may like it.

SIMPLIFY ...

Keith

Posted

Are you loading/viewing the page directly in the browser? That will be the problem then: the CDML needs to be processed by Web Companion before the values are generated. You need to use a url like:

http://www.domain.com/?FMPro-db=name&-lay=layout&-format=filename.htm&-view

Yeah, see that is what I don't get. I am loading the page like that but the unchecked vaules in the list are not showing but the html (row/cells) are.

[ February 08, 2002, 03:14 PM: Message edited by: Bowman ]

Posted

No they don't. I have gone through every value list and every character in every value list and I don't see anything that should not be there. I would give a link to this page to look at but I don't have it on the Internet. It is currently in house only.

My next plan is to scrap the 20 or so value lists and make each item a field. What fun! shocked.gif

Posted

This how the cdml/html should be to show all of your value list items as cells:

<table>

<tr>[FMP-ValueList: abc, List=xyz]

<td>[FMP-ValueListItem] [FMP-ValueListItem: Checked]</td>

[/FMP-ValueList]</tr>

The "checked" tag places the value "checked within the <option> tag if you are using selections.

Hope this helps.

Garry

Posted

OK, I will try this. I was thinking that would do the trick so you confirmed by suspicions. I will let you know how it went. Thanks.

[ February 10, 2002, 12:05 AM: Message edited by: Bowman ]

This topic is 8419 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.