Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

SOLVED

Floating field value based on dropdown selection (gender)

stephenf8734174
Level 3
Level 3

Hi, I'm creating a form that will have various fields, dropdowns etc where the responses will populate a range of floating fields in a letter. I would like to have a dropdown for gender (male/female) and if selected, will either populate in the letter as 'he' or 'she'. Is this possible?

1 Accepted Solution
_Bruce_Robertson
Correct answer by
Level 10
Level 10

Hi,

Here's a couple of ways of doing this in this sample https://sites.google.com/site/livecycledesignercookbooks/home/HeShe.pdf?attredirects=0&d=1

The Male/Female drop down can have a bound value of he/she, which means we can reference the value directly without going though any calculation.  If there's a lot of places where he/she needs to be substituted then you can simplify things by referencing the form field directly, though this does require editing the XML, but if you don't you'll end up with a hidden field for every occurrence.  Or you could edit the XML Source and change the reference to the same id of the one floating field.  There are examples of both in the linked sample above.

Regards

Bruce

View solution in original post

2 Replies
_Bruce_Robertson
Correct answer by
Level 10
Level 10

Hi,

Here's a couple of ways of doing this in this sample https://sites.google.com/site/livecycledesignercookbooks/home/HeShe.pdf?attredirects=0&d=1

The Male/Female drop down can have a bound value of he/she, which means we can reference the value directly without going though any calculation.  If there's a lot of places where he/she needs to be substituted then you can simplify things by referencing the form field directly, though this does require editing the XML, but if you don't you'll end up with a hidden field for every occurrence.  Or you could edit the XML Source and change the reference to the same id of the one floating field.  There are examples of both in the linked sample above.

Regards

Bruce

View solution in original post

stephenf8734174
Level 3
Level 3

Worked perfect - thanks for that Bruce!