Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

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

Recommended Posts

Posted

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!

Posted

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

Posted

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

Posted

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

Posted

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".

Posted

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

Posted

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

This topic is 6969 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.