Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Displaying info on web

Featured Replies

Hi guys,

Trying to properly display information....A user fills in the form by checking radio buttons and a menu where you hold down cntrl to select multiples. After submission, they can pull it back up to edit their information, but none of the radio buttons are checked, nor are the menu items highlighted. I know there must be a way to fix this! but what is it??? Thanks!

Are you using Custom Web Publishing (CWP) and CDML?

Garry

  • Author

I'm not familiar with those terms... I'm coding the pages in Dreamweaver and using a form to interact with FP.

How are you displaying the other information in the Form?

If you are using CDML here is a method for Radio Buttons:

Yes

No

Here is a method for using a ValueList and Checkboxes:

[FMP-ValueList: Countries, List=Countries]

[FMP-ValueListItem]

[/FMP-ValueList]

All the best.

Garry

  • Author

Thanks Gary, I got the checkboxes working!

How would this work if I'm using select statements for the menu lists?

Sarah

You could do something like this:

[FMP-ValueList: town, List=Towns]

[FMP-ValueListItem]

[/FMP-ValueList]

Good Luck.

Garry

  • Author

Ok, we're closer. It won't allow me to choose more than one selection though and it doesn't highlight the ones that were picked in the database. Any ideas?

Thanks so much.

Sarah

To select more than one item you can try:

We may need to see your page to find out what is happening. Are you using a "Repeating" field?

All the best.

Garry

  • Author

Hi Garry (sorry I left a r out of your name last time!)

Here's the code I have now:

[FMP-ValueList: Clinical Specialties, List=Clinical Specialties]

[FMP-ValueListItem]

[/FMP-ValueList]

It lists the options beautifully, but still doesn't select the ones that have been highlighted in the database. At this point, I allow people to select as many options as they want.

Thanks!

Sarah

Using a bit of Javascript works for me:

Country:

[FMP-ValueList: Countries, List=Countries]

if ( myselection == "[FMP-ValueListItem]")

{

document.write('[FMP-ValueListItem]');

}

else

{

document.write('[FMP-ValueListItem]');

};

[/FMP-ValueList]

I'm not sure how this will work with multiple values! Maybe have to check if the ValueListItem is contained within the field value.

All the best.

Garry

p.s. I believe the [FMP-ValueListChecked] is not working because it is inserting the word "checked" instead of "selected".

  • Author

Hello there,

I've got it working for one! Thank you much. I tried this for multiples, it didn't work, but I wanted to see if you had any ideas of if something along these lines could work:

[i've just taken your code and added a for loop, then added the i's to the end of the ValueList, hoping it would cycle through them.]

myselection = "[FMP-Field: Clinical Specialties]";

[FMP-ValueList: Clinical Specialties, List=Clinical Specialties]

if ( myselection == "[FMP-ValueListItem]")

{

document.write('[FMP-ValueListItem]');

}

else

{

document.write('[FMP-ValueListItem]');

};

[/FMP-ValueList]

}

Thanks again!

Sarah

Give this one a go:

[FMP-ValueList: Clinical Specialties, List=Clinical Specialties]

if ( myselection.search("[FMP-ValueListItem]") >= 0)

{

document.write('[FMP-ValueListItem]');

}

else

{

document.write('[FMP-ValueListItem]');

};

[/FMP-ValueList]

}

Good Luck.

Garry

Create an account or sign in to comment

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.