You are viewing limited content. For full access, please sign in.

Question

Question

Can't assign value to a multiple line field.

asked on October 13, 2014 Show version history

Hi everyone,

Here is my Script.

$(document).ready(function(){
 
  $('.Single input').val(17737373);
  $('.Multi input').val(53633737);
  });

I have to set a set of values to a multiple line filed. I try first with single line filed,it works.

But when I assign a value to multiple line ,nothing appear in the field.

How to deal with this,please suggest .

Regards,

Bongkoch.

Issue_with_Multiline.png
1 0

Answers

APPROVED ANSWER
replied on October 14, 2014 Show version history

The multi-line fields are not regular inputs, but rather, a textarea. You can use

$('.Multi textarea').val('53633737');

 

4 0
replied on October 14, 2014

Hi Alexander,

Thank you very much, this answer my question

Regards,

Bongkoch

 

0 0
SELECTED ANSWER
replied on October 14, 2014 Show version history

Have you tried using a different CSS Classname? 

 

The multi-line field and the single line fields are slightly different. You should try "textarea" instead of "input" in your field reference call.

 

Also, what happens if you try the following:

$('#Field40').val('53633737');

As part of that line of code, I changed the value to be in single quotes so as to explicitly pass that value to the field. Maybe that's what you need to try

2 2
replied on October 14, 2014

Hi Kenneth,

Thank you for your suggestion.

I forgot to try this and it works, too.This is new for me.

Appreciate your help,

Bongkoch

0 0

Replies

You are not allowed to reply in this post.
replied on November 29, 2015

ทดสอบการรับภาษาไทยในส่วน Answers ซึ่งสามารถใข้งานได้ในประเทศไทยด้วย จาก Somjeat Upapong

You are not allowed to follow up in this post.

Sign in to reply to this post.