How to remove add and lookup icons in detail view?

If you're a new user of AppGini, feel free to ask general usage questions, or look for answers here.
Post Reply
Gerud Mani
Posts: 9
Joined: 2016-08-22 04:18

How to remove add and lookup icons in detail view?

Post by Gerud Mani » 2017-02-07 13:42

_________________
AppGini 5.51 rev905

Hello,
I'm trying to remove the add icon and lookup icon (eye) in detail view page for certain fields, but it's not working:
Image

I disabled the 'Link to parent record' and now when I click the eye icon it does nothing, but the icon is there!
Image

Please advise how I can remove these for certain fields.

samrainbow
Posts: 11
Joined: 2015-09-24 14:06

Re: How to remove add and lookup icons in detail view?

Post by samrainbow » 2017-02-07 17:17

There should be something like this in your template_DV.html :

<div class="form-group">
<label for="Yourfieldname" class="control-label col-lg-3">Your field name<span class="text-danger"><%%TRANSLATION(*)%%></span></label>
<div class="col-lg-9">
<div class="row form-control-static"><div class="col-xs-11"><%%COMBO(Your_field_name)%%><%%PLINK(Your_field_name)%%><%%ADDNEW(Your_field_name)%%></div></div>
</div>
</div>

Just remove : <%%PLINK(Your_field_name)%%><%%ADDNEW(Your_field_name)%%> for all fields where you want to remove add new and show parent.

Gerud Mani
Posts: 9
Joined: 2016-08-22 04:18

Re: How to remove add and lookup icons in detail view?

Post by Gerud Mani » 2017-02-07 19:35

Thank you, Sam.
I was hoping to find a way to remove these icons using axp settings or at least a hooks code so I won't need to remove them everytime I generate my code :(

Post Reply