› Forums › Classic DFFS › Headers and pre columns
- This topic has 3 replies, 2 voices, and was last updated 9 years, 2 months ago by
Sonoma.
-
AuthorPosts
-
-
September 18, 2014 at 15:15 #6200
Sonoma
ParticipantI understand how to insert headers and use the left and top to display a field but how would I insert a column?
My fields are a text box text set to top and a check box.
2 columns but need to insert a column that has labels.I need to have the labels/headers on top which the “Insert header” provides if needed but I would like to be able to set the headers to the left or right or use the same index # to get them side by side.
What do you recommend?
Can I have a field and not display the field but display the label only?I have attached a screenshot. The text in the red is what I need to add. 3 rows. each unique to its row.
Thanks.
Attachments:
-
September 19, 2014 at 14:00 #6205
Sonoma
ParticipantI kind of found a work around but I feel it is cheesy.
I created new fields in SP (lblDisplay1,lblDislblBlank2,lblBlank3,lbbDisplayText1, etc) and hide them with jquery. Alignment can be cumbersome but it works.
Is this the way or is there a better/preferred way?Sample code I put in Misc
$('input[title=lblBlank1]').parent().parent().parent().hide();
Thank you.
Attachments:
-
September 19, 2014 at 18:16 #6217
Alexander Bautz
KeymasterHi,
You can do it a bit easier like this:
Add the side-by-side fields, but do NOT check “Stretch side-by-side fields over both form columns” in the “Side-by-side” tab.Add this custom js in the Misc tab:
$("#sbs_OuterTR_1").find("div.dffs_tdWrap:first").html("<h3 class='ms-standardheader'>Q1</h3>"); $("#sbs_OuterTR_2").find("div.dffs_tdWrap:first").html("<h3 class='ms-standardheader'>Q2</h3>");
The number in this string represents the side-by-side index used in the “Tabs” tab when setting up side-by-side: sbs_OuterTR_1
The attached image shows the labels.
Alexander
-
This reply was modified 9 years, 2 months ago by
Alexander Bautz.
Attachments:
-
This reply was modified 9 years, 2 months ago by
-
September 22, 2014 at 14:56 #6230
Sonoma
ParticipantYet again, nice solution. Thank you.
-
-
AuthorPosts
- You must be logged in to reply to this topic.