obullei
Posts: 0
Joined: Thu Jun 05, 2014 12:17 am

Validating form fields - setting textarea CSS with javascript

Hello Chris!

Could we help you with something else?

Chris McKenna6917608
Posts: 0
Joined: Sat Jun 07, 2014 2:12 am

Validating form fields - setting textarea CSS with javascript

Yes.. I thought I had it working.. but i not getting the value of my input field.

I have one named: CustomerName

so I was trying to get the value like this:
var CustomerName = Appery("CustomerName").val();

This is returning nothing, var CustomerName is empty.

CustomerName is a template input field and text is exposed, so is .val() is valid?

Chris McKenna6917608
Posts: 0
Joined: Sat Jun 07, 2014 2:12 am

Validating form fields - setting textarea CSS with javascript

Hmm It seems to be that the input field was a custom component. When I removed that, it worked.

On the customer component i have the text property exposed. Can I not use appery function with customer components?

Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

Validating form fields - setting textarea CSS with javascript

Hi Chris.

Please use following code if you using input inside the custom component.

pre

//Where:
//"CustomComponent1_17" - your custom component name.
//"mobiletextinput_16" - your input component name inside your customComponent.
Apperyio("CustomComponent1_17_mobiletextinput_16").val();

/pre

Regards.

Return to “Issues”