Planned maintenance is scheduled for the week of June 15th - the exact date and time will be announced soon.
See More Details
Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
How To make aui input is read only?
Hi,
How To make aui input is read only?
Thanks in Advance.
How To make aui input is read only?
Thanks in Advance.
Use the attribute readonly and set this to true
<aui:input type="text" name="name" readonly="true" />
Regards,
Atin Agarwal
<aui:input type="text" name="name" readonly="true" />
Regards,
Atin Agarwal
angu manikandan:
Hi,
How To make aui input is read only?
Thanks in Advance.
readonly attribute may not work on aui
use :
<aui:input name="name" disabled="true"/>
-
Regards
Manish Singh
Manish Singh:
readonly attribute may not work on aui
use :
<aui:input name="name" disabled="true"/>
Keep in mind that "disabled" and "readonly" do two different things: both will prevent the user from editing the value in your input field, but "disabled" will also prevent the value from being passed as a request parameter on form submit, whereas "readonly" will allow the value to be submitted.
The readonly attribute is currently only applied to the aui:input tag if the "type" attribute is specified: if not, the readonly attribute won't show up in the markup.
Also note that readonly="false" still makes the input tag readonly - it's a property setting rather than a true xml attribute. So beware of trying to make a field readonly programmatically, based on some boolean field. It probably won't behave as expected.
give just aui input field as readonly="true".
Community
Company
Feedback