How do I dynamically set a field to readonly if the value fetched from Db is not null .
I am fetching email field value from DB. if the value for this is field is not null then I want the field to be readonly. that means it should only display the email id. if the value returned from the DB is null then the user should have option to enter the value for email id which will be updated in DB for future use.
Kindly suggest how this can be achieved.
TIA
I am fetching email field value from DB. if the value for this is field is not null then I want the field to be readonly. that means it should only display the email id. if the value returned from the DB is null then the user should have option to enter the value for email id which will be updated in DB for future use.
Kindly suggest how this can be achieved.
TIA