Hi Fiona
I can think of two solutions to your problem.
The first is to hack the code so that ' (required)' is stripped off the attribute caption before comparing with the names of profile fields. Simply done, in one line of code, but needing to be reinstated every time you upgrade the iform module. I would call that bad practise.
The alternative is to reconfigure on the warehouse to use custom attributes with captions 'First Name' and 'Last Name' and manage the consequences. I would expect the following:
The attributes can be made required on a per-survey basis by going to Lookup Lists > Surveys, finding your survey, clicking on Setup Attributes and clicking Edit for the attribute you want to modify. Check the box labelled required and then Save.
Clear the cache on your web site and the new attributes start being used, hopefully with values filled from the profile, when a user is logged in.
When you make this change, all the names that you have collected to date will remain in the database but tagged with the id of an attribute that is no longer part of the survey. Effectively the information has been orphaned.
Wherever data is output automatically, based on the survey definition, the old name values will be missing.
Any reports that refer to attributes explicitly by id will show old name values but not the new ones. (You probably don't have any such reports.)
Clearly the poor wee orphans need adopting. The solution to this is for me to run an update on the database so that I reassign all the custom attribute values you have collected for 'First Name (required)' (id=6) to 'First Name' (id=36) and 'Last Name (required)' (id=7) to 'Last Name' (id=58).
This is all quite painless but it is also all theory. We ought to try this on testwarehouse first
I have found the use of public custom attributes a bit of a double-edged sword myself. Had you created your own custom attributes for first name and last name the solution would have been as simple as changing the caption.
I suggest we continue by email correspondence and report back our conclusion to the forum.
Jim Bacon.