Hi,
1. I am wondering, if there is a way (CSS?) to make links not show up "ugly" in a lookup field.
See the picture, the text after the : is made of individual links (first line: 1001665 is a link, 401Electronics is another link). You will notice, that the links after 414Tablet are not really visible.
2. Also: In this dropdown I would like to disable links (to prevent users from accidentally clicking on them. Is that possible?
Olaf
ugly and unwanted: links in lookup
ugly and unwanted: links in lookup
Some postings I was involved, you might find useful:
SingleEdit - Prevent concurrent edits on records; Field Permissions; Column-Value-Based-Permissions; Custom (error) message; Audit Log; Backup your database; Two Factor Authentication; Block brute force (failed) logins; Add 2nd SAVE CHANGES button; Place a search on details view
SingleEdit - Prevent concurrent edits on records; Field Permissions; Column-Value-Based-Permissions; Custom (error) message; Audit Log; Backup your database; Two Factor Authentication; Block brute force (failed) logins; Add 2nd SAVE CHANGES button; Place a search on details view
Re: ugly and unwanted: links in lookup
Hi.
for qustion 1: change the css
.select2-results .select2-highlighted {
background: #3875d7;
color: #fff;
}
to something that fits for you.
Why do you need to show the links on the seletable items?
for qustion 1: change the css
.select2-results .select2-highlighted {
background: #3875d7;
color: #fff;
}
to something that fits for you.
Why do you need to show the links on the seletable items?
Any help offered comes with the best of intentions. Use it at your own risk. In any case, please make a backup of your existing environment before applying any changes.
Re: ugly and unwanted: links in lookup
Hi pbötcher,
thank you.
I searched and found this - which can disable links using css. Pretty neat I think
Source: https://stackoverflow.com/questions/209 ... ss#4416239
regular HTML:
and CSS
On stackoverflow it says in the comments (deriving from 2013), that you can still tab to the link - which I can not. Probably the browser-problem was solved by now.
Olaf
thank you.
I searched and found this - which can disable links using css. Pretty neat I think
Source: https://stackoverflow.com/questions/209 ... ss#4416239
regular HTML:
Code: Select all
<a href="link.html" class="not-active">Link</a>
Code: Select all
.not-active {
pointer-events: none;
cursor: default;
text-decoration: none;
color: black;
}
Olaf
Some postings I was involved, you might find useful:
SingleEdit - Prevent concurrent edits on records; Field Permissions; Column-Value-Based-Permissions; Custom (error) message; Audit Log; Backup your database; Two Factor Authentication; Block brute force (failed) logins; Add 2nd SAVE CHANGES button; Place a search on details view
SingleEdit - Prevent concurrent edits on records; Field Permissions; Column-Value-Based-Permissions; Custom (error) message; Audit Log; Backup your database; Two Factor Authentication; Block brute force (failed) logins; Add 2nd SAVE CHANGES button; Place a search on details view
SOLVED: ugly and unwanted: links in lookup
Hi,
thanks again for your help pbötcher.
I want to post this follow up as it might help others. Your css path brought me on track and using the CSS from above I was able to get it working.
In the following CSS I set red as background to make it easy recognizable. The links in the path (all words after the colon (:) ... >... >... are links) are disabled and the cursor stays the hand - works perfect. Once the user has chose an entry he can click on each individual link - which is fine for me, as I just wanted to make sure nobody accidentally clicks on any link while choosing some value from the lookup.
CSS used
Looks like this:
Once chosen:
Olaf
thanks again for your help pbötcher.
I want to post this follow up as it might help others. Your css path brought me on track and using the CSS from above I was able to get it working.
In the following CSS I set red as background to make it easy recognizable. The links in the path (all words after the colon (:) ... >... >... are links) are disabled and the cursor stays the hand - works perfect. Once the user has chose an entry he can click on each individual link - which is fine for me, as I just wanted to make sure nobody accidentally clicks on any link while choosing some value from the lookup.
CSS used
Code: Select all
.not-active,
#select2-drop > ul > li > div > a {
pointer-events: none;
cursor: default;
text-decoration: none;
/* color: black; */
}
.select2-results .select2-highlighted a {
background: red;
color: yellow;
}
Some postings I was involved, you might find useful:
SingleEdit - Prevent concurrent edits on records; Field Permissions; Column-Value-Based-Permissions; Custom (error) message; Audit Log; Backup your database; Two Factor Authentication; Block brute force (failed) logins; Add 2nd SAVE CHANGES button; Place a search on details view
SingleEdit - Prevent concurrent edits on records; Field Permissions; Column-Value-Based-Permissions; Custom (error) message; Audit Log; Backup your database; Two Factor Authentication; Block brute force (failed) logins; Add 2nd SAVE CHANGES button; Place a search on details view