- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-14-2022 10:09 AM
I have an email type variable in a catalog item that requests the user to input an email address. The trouble is that the default format of the email type field includes an envelope button on the right side which opens an email client like a 'sendTo' link.
This link does not make sense for the context which is needed and I would like to remove this link/button/icon from the field on the service portal. I could use a regular text field instead of the email type, but I like the email address input validation on the email type variable.
Is there a simple way to remove or disable this button for this catalog item?
Thank you,
Jason
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-16-2022 02:44 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-14-2022 10:26 AM
Can you try the below code in onLoad client script
function onLoad() {
callThisFunction();
function callThisFunction() {
var refs = document.getElementsByTagName("a");
if (refs) {
for (var i=0; i < refs.length; i++) {
var ref = refs;
var inner = ref.innerHTML;
if (inner.indexOf("email.gifx") > 0){
ref.style.display = 'none';
}
}}}}
If the above code doesn't work then the only way is to create single-line text and apply custom validation to it using onChange client script.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-14-2022 10:39 AM
Thanks Sai,
Could you give me a quick example or link to how I would implement the validation on the text field?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-16-2022 02:44 AM