Page 1 of 1

Introduce a visual break between fields in detail view

Posted: 2018-01-11 12:56
by dannybridi
Hi everyone,

I'd like to be able to separate fields displayed in the generated detail view to form sections. In other words, I'd like to insert the HTML equivalent of <HR /> between fields in DV:
FIELD1
FIELD2
<HR />
FIELD3
FIELD4
<HR />
FIELD5
How do I go about doing this?

Thanks

Re: Introduce a visual break between fields in detail view

Posted: 2018-01-28 19:22
by R Tammam
Hello dannybridi,
you can use this code just replace CompanyName with fieldname you want to add hr to it
$j('#CompanyName').parents('.form-group').after('<hr>');

Re: Introduce a visual break between fields in detail view

Posted: 2018-02-01 01:28
by dannybridi
Hi Tammamm,
Where should I this line?
Thanks

Re: Introduce a visual break between fields in detail view

Posted: 2018-02-01 02:03
by dannybridi
Sorry Tammam,
Where exactly should I add this code?
Thanks for your help.

Re: Introduce a visual break between fields in detail view

Posted: 2018-02-05 08:16
by R Tammam
sorry dannybridi,

i forget to mention that you should put this line in tablename-tv.js (if you don't have this file create it )

Re: Introduce a visual break between fields in detail view

Posted: 2018-02-18 18:13
by dannybridi
Great Tammam. It works!
Thank you.

Re: Introduce a visual break between fields in detail view

Posted: 2018-02-19 00:27
by R Tammam
You are welcome dannybridi :)