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

Question

Question

Hiding field input on submission

asked on March 6, 2018

So I have a Policy Title (1.) field and from that field, I am trying to do two actions; #1 auto populate the the Policy Title (2.) with the information from (1.) and #2 hide the Policy Title (1.) field in the final submitted document. I have already accomplished populating the Policy Title (2.) with a field variable, just need to figure out how to hide the entire highlighted field. Can anyone assist me with this?

lfanswers1.JPG
lfanswers1.JPG (59.33 KB)
0 0

Answer

SELECTED ANSWER
replied on March 6, 2018

Hi Rex,

Have you tried duplicating the form and removing the field you do not want shown? Use this duplicated form in the save to repository task. I know it's not hiding it, but might be what you're after.

1 0
replied on March 6, 2018

That seemed to work!

1 0

Replies

replied on March 6, 2018 Show version history

Hi Rex,

Try this:

$(document).ready(function(){
  $(".action-btn").click(function(){
      $("#q1").hide(); // Replace id q1 with the id of your field
  });
});

 

0 0
replied on March 6, 2018 Show version history

Even after changing the id from #q1 to my correct field id (#q61), it did not work. I am simply trying to hide the field when the Submit button in clicked. Hope that clarifies some confusion.

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

Sign in to reply to this post.