Hi,
at some profile forms I made use of the &customFields and &inputHandler option. No problem so far. Everything gets saved nicely into the database. Also customfield values like (multiple) selects and checkboxes. I use the following call to make it possible for members to edit their profile:
[!WebLoginPE? &type=`profile` &profileTpl=`WLPE_Profiel_Uitgebreid` &disableServices=`deleteprofile,confirmdeleteprofile,login,logout` &customFields=`voornaam,tussenvoegsel,achternaam,aandachtsgebied` &inputHandler=`:userProfileAandachtsgebied:aandachtsgebied:select multiple:Woningfinanciering(woningf),Zakelijke financiering(zakfina),Commerciele Sturing(comstur),LAC(lac),HR(hr),Communicatie(communi),Inkoop(inkoop),Staf(staf),Verzekeren Particulieren(verpart),Verzekeren Bedrijven(verbedr),Betalen en Sparen(betensp),N.v.t.(nvt)` &lang=`nl` &userImage=`105000,100,150` !]
As you can see in the code above, I’m using a custom field called "aandachtsgebied". On the edit profile page this customfield is presented as a multiple select element. Works fine. So now I wanna give visitors the possibility to see all members of the website. I do this using the following snippet call:
[!WebLoginPE? &type=`users` &usersOuterTpl=`WLPE_smoelenboek_outer` &usersTpl=`WLPE_smoelenboek` &usersList=`Smoelenboek:default:default:fullname:ASC:smoelenboek(1)` !]
The problem that I can’t solve is the following. When I use
[+view.aandachtsgebied+] in the chunk
WLPE_smoelenboek, I get to see the value stored in the database (eg. comstur||lac||hr). I’d rather like to see the description instead of the values, but so far haven’t been able to figure out how the accomplish this. I tried using the &customFields and &inputHandler option in the call, but that doesn’t seem to work.
Maybe the answer is already mentioned somewhere on this forum. I have tried to find it, but unsuccessfully so far. So if any of you has any ideas, it would be nice if you could share them.
Thx in advance,
Karel