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

Custome Javascript to update a text box not working on Display form

Jump to solution

Hi All,

I am having a form with multiple sections. This sections have a show/hide logic rule based on a text field. So e.g. if text field has value A then section A would be shown and so on.

Button click has a custom javascript to set this textbox with proper value. I have stored client ID of textbox in a variable and using NWF$ to set the value.

All works as expected in new and edit form but I have an issue in display form. As its a textbox it is disabled in display so javascript is not able to set value. I tried below approaches to overcome this issue

1. Using javascript variable which holds client ID of text box, show and enable text box.

2. Give class to textbox and use JQuery to find element so it can be shown and enabled.

But both fails it seems element cannot be found in display form with above two approaches. Can someone help me please.

Labels: (1)
0 Kudos
Reply
3 Replies
Automation Master
Automation Master

Re: Custome Javascript to update a text box not working on Display form

Jump to solution

configure text box control's 'Control Mode' to Edit instead of enabling control from javascript

text control‌ ‌ view form‌ control mode‌

View solution in original post

0 Kudos
Reply
nigade_shashank
Nintex Newbie

Re: Custome Javascript to update a text box not working on Display form

Jump to solution

Thank you so much. Works like a charm! :-) 

Reply
Highlighted
premsai908
Nintex Newbie

Re: Custome Javascript to update a text box not working on Display form

Jump to solution

Thanks Alot for A2A it saved alot of effort

0 Kudos
Reply