Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
Mahidhar kundella
Javascript events for customFields
March 5, 2013 11:37 PM

Mahidhar kundella

Rank: New Member

Posts: 10

Join Date: January 28, 2013

Recent Posts

Hi Everyone,

I'm using custom fields and I created one custom field called accounttype It has three values like drop down . I want to write a javascript event whenever I changed the dropdown value like "onChane" javascript event . I tried with the below code
className="<%= User.class.getName() %>" onChange="javascript:testing(this.value)"
classPK="<%= 0 %>"
editable="<%= true %>"
label="<%= true %>"

but it is giving " Attribute onChange invalid for tag custom-attribute according to TLD" error.

Can any one suggest me how to complete this and how to solve this.

Thanks in advance,

Mahidhar Kundella
Samuel Kong
RE: Javascript events for customFields
March 6, 2013 1:26 AM

Samuel Kong


Rank: Liferay Legend

Posts: 1677

Join Date: March 10, 2008

Recent Posts

You will either need to (a) customize the custom-attribute tag to add support for the onChange attribute or (b) don't use the custom-attribute tag and create the select box yourself by calling the Expando API yourself.