Page 2 of 2

Validating form fields - setting textarea CSS with javascript

Posted: Fri Jun 13, 2014 1:26 am
by obullei

Hello Chris!

Could we help you with something else?


Validating form fields - setting textarea CSS with javascript

Posted: Fri Jun 13, 2014 1:35 am
by Chris McKenna6917608

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?


Validating form fields - setting textarea CSS with javascript

Posted: Fri Jun 13, 2014 1:42 am
by Chris McKenna6917608

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?


Validating form fields - setting textarea CSS with javascript

Posted: Fri Jun 13, 2014 2:44 am
by Yurii Orishchuk

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.