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

Question

Question

Is it possible to make a Row within a table a different field type?

asked on October 19, 2015

I know that we can change the Column to a different field type, but can this be done for a ROW instead?

I am looking to set the Date Row as a datepicker type.

 

0 0

Answer

SELECTED ANSWER
replied on October 20, 2015

Hi there,

I don't really think there is a good way to do this unfortunately, although there is a pretty sloppy way (which I've included below) which involves moving other date fields into the table using JQuery.

var datefield1 = $("#Field28");
  var dateimg1 = $("#q28 img");
  var datefield2 = $("#Field34");
  var dateimg2 = $("#q34 img");
  var datefield3 = $("#Field35");
  var dateimg3 = $("#q35 img");
  $(".date1:first input").remove();
  $(".date1:first").append(datefield1);
  $(".date1:first").append(dateimg1);
  $(".date2:first input").remove();
  $(".date2:first").append(datefield2);
  $(".date2:first").append(dateimg2);
  $(".date3:first input").remove();
  $(".date3:first").append(datefield3);
  $(".date3:first").append(dateimg3);
  $("#q28").remove();
  $("#q34").remove();
  $("#q35").remove();

Basically all this will do is remove the first fields from the table and move the date fields below the table into the empty slots, which will give you this result:

But if you were planning on saving this form to a repository I doubt these changes would be saved and I'm not really sure how universal this solution would be, but on the face of it it does do what you wanted wink

Dan

1 0
replied on October 20, 2015

Thank you for the suggestion!

0 0

Replies

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

Sign in to reply to this post.