Hy all,
I'm trying to use readonly='readonly' in the Field class of a text box to make it not editable by the user, but once it has filled by DB record loader in the onload event, it still is editable.
It seems a simple problem, but I'm not able to ...
Thanks in advance
Vince
I'm trying to use readonly='readonly' in the Field class of a text box to make it not editable by the user, but once it has filled by DB record loader in the onload event, it still is editable.
It seems a simple problem, but I'm not able to ...
Thanks in advance
Vince
Hi Vince,
I'm surprised that putting readonly in the class box does anything at all. If you are using the code from this FAQ then you need to make sure that it is run again when page reloads.
Bob
I'm surprised that putting readonly in the class box does anything at all. If you are using the code from this FAQ then you need to make sure that it is run again when page reloads.
Bob
In the attachment what I set in the field configuration.
But I did not add the JS of the FAQ you have mantioned.
I have to add that Load JS action in the on load event?
I just used another Load JS for different pourpose, if it is the case, I can add a different Load JS or I have to merge both?.
Thank you Vince
But I did not add the JS of the FAQ you have mantioned.
I have to add that Load JS action in the on load event?
I just used another Load JS for different pourpose, if it is the case, I can add a different Load JS or I have to merge both?.
Thank you Vince
Hi Benvenuto,
You can use the same Load JS action for all your scripts (though it will still work if you use more than one).
Bob
You can use the same Load JS action for all your scripts (though it will still work if you use more than one).
Bob
Hi Bob!
I arranged my form accornding your suggestion (this FAQ) and now it works, but only for the first cfdiv_text input of my form. How can I arrange to make it works with all the text inputs (and also with other fields) of my form?
Thank's a lot.
Vinc
I arranged my form accornding your suggestion (this FAQ) and now it works, but only for the first cfdiv_text input of my form. How can I arrange to make it works with all the text inputs (and also with other fields) of my form?
Thank's a lot.
Vinc
Hi Benvenuto,
If it only works on the first text input then you may have a typo in the code. Please post a link to the form so I can take a quick look.
Bob
If it only works on the first text input then you may have a typo in the code. Please post a link to the form so I can take a quick look.
Bob
Here it is
http://www.lidap.it/administrator/index.php?option=com_chronoforms&task=form_wizard&form_id=53
thanks very much
Vinc
http://www.lidap.it/administrator/index.php?option=com_chronoforms&task=form_wizard&form_id=53
thanks very much
Vinc
This topic is locked and no more replies can be posted.
