Hi all,
I have a profile form in CF4, it works!!!
But I want the username field to be readonly.
in html it would be like....
I tried putting that code into a "Custom Element" and it works but there is no ability for it to have "instructions for users" or "tooltips" to alert the user that it cannot be changed.
How would I address this?
Thanks in advance.
MrFitz
I have a profile form in CF4, it works!!!
But I want the username field to be readonly.
in html it would be like....
<input type="text" name="uname" value="<?php echo "$uname"; ?>" size="30" readonly="readonly" />
I tried putting that code into a "Custom Element" and it works but there is no ability for it to have "instructions for users" or "tooltips" to alert the user that it cannot be changed.
How would I address this?
Thanks in advance.
MrFitz
Hi MrFitz,
If it's read-only why do you need tooltips or user help?? just curious.
You can make it read-only using JavaScript. Add an id=uname to the input then
Bob
If it's read-only why do you need tooltips or user help?? just curious.
You can make it read-only using JavaScript. Add an id=uname to the input then
window.addEvent('domready', function() {
$('uname').setProperty('readonly', 'readonly');
});
Bob
This topic is locked and no more replies can be posted.