Question

6
Replies
164
Views
Dineshsb1 Member since 2013 25 posts
JP Morgan Chase
Posted: March 1, 2017
Last activity: March 20, 2017
Closed

Disabled Field is enabed after ajax calls

Hi All ,

As per our business requirement ,we have to set the value for the fields and disabled fields on the UI so that the user cannot edit these.We cannot use the disabled condition for each field as the fields to disable change based on scenario and some business rules .Assume we have 5 fields on the screen A,B,C,D,E .Below are few scenarios's.

Scenario1 - A,B,C Fields should be disabled

Scenario 2- A,C,D Fields should be disabled .

We have implemented this and disabled the fields using java script and on load of the screen we are calling the function .below is the code

/*

document.getElementById(pname).setAttribute("disabled","");

*/

Issue :- Apart from these fields , there are other fields on the UI which has some events configured like post value/refresh section .Whenever these events gets triggered the fields are re-enabled unless we call the function in the script file to disable .

Is there a way we can achieve our business use case without the need to call the script on each and every field on the UI .

Thanks

Dinesh

***Updated by moderator: Lochan to update Categories***

Low-Code App Development Dev/Designer Studio Low-Code App Development Case Management User Interface
Moderation Team has archived post
Share this page LinkedIn