cancel
Showing results for 
Search instead for 
Did you mean: 
ramnikesh7
Nintex Newbie

How to remove or disable lookup hyperlinks on nintex forms 2013 ?

I have List Lookup fields in my nintex form. Once the form is completed and submitted, when I view the form it displays with hyperlinks on the Nintex form.

When I click on the hyperlinks it navigates to the Lookup values list.

I want remove or disable the lookup hyperlinks on the nintex form once it is submitted.

0 Kudos
Reply
11 Replies
Not applicable

Re: How to remove or disable lookup hyperlinks on nintex forms 2013 ?

did u find the solution for this?

0 Kudos
Reply
Automation Master
Automation Master

Re: How to remove or disable lookup hyperlinks on nintex forms 2013 ?

try following:

- add class notActiveURL to a lookup control

- place following piece of code into form settings

NWF.FormFiller.Events.RegisterAfterReady(function () {

  NWF$('.notActiveURL').mouseenter(function(){

    if (Is Display Mode && NWF$('.notActiveURL a')){

      NWF$('.notActiveURL a').attr('href',null);

      NWF$('.notActiveURL a').attr('onclick',null);

      NWF$('.notActiveURL a')[0].onclick=null;

      NWF$('.notActiveURL a')[0].click=null;

      NWF$('.notActiveURL a').css('pointer-events','none');

      NWF$('.notActiveURL a').css('cursor','default');

      NWF$('.notActiveURL a').css('text-decoration','none');

    }

  })

})

Reply
ramnikesh7
Nintex Newbie

Re: How to remove or disable lookup hyperlinks on nintex forms 2013 ?

HI Pascal,

Sorry for the Late reply. Yes, I got the solution for this. Follow the Steps.

Step 1: Create a label for each field where there is a hyperlink.

Step 2: Configure the Label with the same Item Property with respect to the Field which shows the hyperlink.

Step 3: Add Rules to the newly created label on the form . (Edit mode -- Hide)

Step 4: Add Rule to the lookup Field ( Is Display mode -- Hide)

Step 5: Place the label on the lookup field in the form. ( Place the label over the Lookup field, on one another)

If you still have any questions on this method, please let me know.

0 Kudos
Reply
Highlighted
Automation Master
Automation Master

Re: How to remove or disable lookup hyperlinks on nintex forms 2013 ?

Hi ram Kanteti‌,

were you able to resolve your issue?

if so, could you close the question by selecting correct answer?

#BRGreview

0 Kudos
Reply
joseph_cervi
Nintex Newbie

Re: How to remove or disable lookup hyperlinks on nintex forms 2013 ?

Marian,

I used this and it's working in v2.10.0.0.  The only thing I did different was removed the .mouseenter function and added another css entry.   NWF$('.notActiveURL a').css('color','inherit');

Thanks for sharing,

-JC

Reply
kevitpatel
Nintex Newbie

Re: How to remove or disable lookup hyperlinks on nintex forms 2013 ?

Hi Joseph,

Is it possible to post your working code please? Thanks !

0 Kudos
Reply
Automation Master
Automation Master

Re: How to remove or disable lookup hyperlinks on nintex forms 2013 ?

thanks for sharing ‌.

however, I wonder whether it is reliable then.

if there appears a link that is built after ready event is gone, it will not be disabled.

and lookups are exactly such examples, since they are populated/resolved asynchronously after page is ready.

0 Kudos
Reply
joseph_cervi
Nintex Newbie

Re: How to remove or disable lookup hyperlinks on nintex forms 2013 ?

NWF.FormFiller.Events.RegisterAfterReady(function () {  
    if (Is Display Mode && NWF$('.notActiveURL a')){ 
      NWF$('.notActiveURL a').attr('href',null); 
      NWF$('.notActiveURL a').attr('onclick',null); 
      NWF$('.notActiveURL a')[0].onclick=null; 
      NWF$('.notActiveURL a')[0].click=null; 
      NWF$('.notActiveURL a').css('pointer-events','none'); 
      NWF$('.notActiveURL a').css('cursor','default'); 
      NWF$('.notActiveURL a').css('text-decoration','none');  
      NWF$('.notActiveURL a').css('color','inherit');  
    } 
}) 

Add the CSS notActiveURL to the control you want to apply this too.

Sorry for the delay,

-JC

0 Kudos
Reply
joseph_cervi
Nintex Newbie

Re: How to remove or disable lookup hyperlinks on nintex forms 2013 ?

Marian, 

So far I've not encountered this behavior.  I will post back if I encounter this.  

Thanks,

-JC

0 Kudos
Reply