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

Question

Question

Forms 10.2 Read Only field is not passing the value to WF token.

asked on April 21, 2017 Show version history

I have one field that when I check Read-Only, it does not pass the value to

WF which updates SQL column.  It passes blank value.

I noticed there are many discussion on this issue, I tried most of the Java solutions but couldn't get it working.

 

The field is a number field which has a subtraction formula that gets the result for two other fields (one field is a filled by SQL table lookup  - the other is a field that user inputs Data, a number ). 

 

I am hopping for some help on this

Thank you

0 0

Answer

SELECTED ANSWER
replied on April 24, 2017

Than you for your help

I got it working with this Java script, I think I just needed to reference the table some how.      I got script from the following URL:  http://answers.laserfiche.com/questions/81132/Tables-filled-via-javascript-do-not-carry-their-data-into-next-approval-step#81168  

$(document).ready(function() {

  $('.remaining input').attr('readonly', true);
  
  $('#q32.Table').on('click', function() {
    $('.remaining input').attr('readonly', true);
  });

});

0 0

Replies

replied on April 21, 2017

I've encountered the same issue too, and since then I just use the code below to create the read-only using jQuery. This works for me.

$('.yourtextbox input').attr('readonly',true);
$('.yourtextbox input').css('pointer-events', 'none');

 

0 0
replied on April 22, 2017 Show version history

Thank you Raul,  I will try that,

 

I am not programmer but I can play around with them.     How do I relate the field to the Java script?    Do I put the .youtextbox into field's Advanced CSS section?

0 0
replied on April 24, 2017

Yes, but don't include the dot. Only in the code you need the dot. In the CSS Class field you just type "yourtextbox", but come up with a better name that describes the actual field.

0 0
replied on April 24, 2017 Show version history

The code works with a single field but it does not work if its in the Table.   I think I need another reference point for the table.      I tried to ad another css to table's own advanced section and referenced it like   .Table.yourtextbox    in the Java script.   

But I couldn't get it working, would this be different for field in table Row?

 

 

0 0
SELECTED ANSWER
replied on April 24, 2017

Than you for your help

I got it working with this Java script, I think I just needed to reference the table some how.      I got script from the following URL:  http://answers.laserfiche.com/questions/81132/Tables-filled-via-javascript-do-not-carry-their-data-into-next-approval-step#81168  

$(document).ready(function() {

  $('.remaining input').attr('readonly', true);
  
  $('#q32.Table').on('click', function() {
    $('.remaining input').attr('readonly', true);
  });

});

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

Sign in to reply to this post.