Article
Problem
A Forum reader recently asked:
"I'm in the process of upgrading an iChain setup to Access Manager 3. There seems to be an equivalent for almost everything, except that the Form fill policy only seems to allow one attribute per text input field. It appears that the NAM interface has no way of stuffing two LDAP attributes in the field. Is this possible to do?"
And here is the response from Rowan Truscott ...
Solution
If you have another field on the form that you can temporarily put the second attribute into, then you would be able to apply some Javascript before the form is submitted to stuff the two values together.
I used the "value" for the Submit button. So....
Add GivenName to Name_on_Account Add SN to submit button value (lets call it submit)
Add the following javscript to "Enable JavaScript Handling > Statements to Execute on Submit" section of the form fill policy:
function buildName() {
var givenName=document.getElementById("Name_on_Account");
var values= givenName.value;
var sn=document.getElementById("submit");
var values= values + sn.value;
alert(""+values);
document.getElementById("Name_on_Account").value=values;
}
buildName();
That might do the trick. And remember to take out the alert line once you have tested it.
Disclaimer: As with everything else at Cool Solutions, this content is definitely not supported by Novell (so don't even think of calling Support if you try something and it blows up).
It was contributed by a community member and is published "as is." It seems to have worked for at least one person, and might work for you. But please be sure to test, test, test before you do anything drastic with it.
Related Articles
User Comments
- Be the first to comment! To leave a comment you need to Login or Register
- 5579 reads


0