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

Question

Question

Forms - Read Only fields not populating in metadata

asked on November 11, 2015

I have found that I can set a read only field value with javascript and it shows correctly on screen, however when the form is saved the value does not show in the metadata field I selected to populate. I must remove read-only for the value to actually transfer to the metadata.

0 0

Answer

APPROVED ANSWER SELECTED ANSWER
replied on November 12, 2015

Use

$('#q5 input').attr('readonly', true);
0 0

Replies

replied on November 11, 2015

Use Javascript to give the field the read-only attribute instead of setting the "Read-only" option on the field from the Form designer UI.

0 0
replied on November 12, 2015

I am having trouble doing this with Forms, the standard method .readOnly does not seem to work.

 

document.getElementById('q5').readOnly = true;

0 0
APPROVED ANSWER SELECTED ANSWER
replied on November 12, 2015

Use

$('#q5 input').attr('readonly', true);
0 0
replied on November 30, 2015

Thank you!

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.