Introduce a visual break between fields in detail view

Discussions related to customizing hooks. Hooks are documented at http://bigprof.com/appgini/help/advanced-topics/hooks/
Post Reply
dannybridi
Posts: 9
Joined: 2016-03-21 19:33

Introduce a visual break between fields in detail view

Post by dannybridi » 2018-01-11 12:56

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

R Tammam
Veteran Member
Posts: 110
Joined: 2017-08-26 15:35

Re: Introduce a visual break between fields in detail view

Post by R Tammam » 2018-01-28 19:22

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>');

dannybridi
Posts: 9
Joined: 2016-03-21 19:33

Re: Introduce a visual break between fields in detail view

Post by dannybridi » 2018-02-01 01:28

Hi Tammamm,
Where should I this line?
Thanks

dannybridi
Posts: 9
Joined: 2016-03-21 19:33

Re: Introduce a visual break between fields in detail view

Post by dannybridi » 2018-02-01 02:03

Sorry Tammam,
Where exactly should I add this code?
Thanks for your help.

R Tammam
Veteran Member
Posts: 110
Joined: 2017-08-26 15:35

Re: Introduce a visual break between fields in detail view

Post by R Tammam » 2018-02-05 08:16

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 )

dannybridi
Posts: 9
Joined: 2016-03-21 19:33

Re: Introduce a visual break between fields in detail view

Post by dannybridi » 2018-02-18 18:13

Great Tammam. It works!
Thank you.

R Tammam
Veteran Member
Posts: 110
Joined: 2017-08-26 15:35

Re: Introduce a visual break between fields in detail view

Post by R Tammam » 2018-02-19 00:27

You are welcome dannybridi :)

Post Reply