cancel
Showing results for 
Search instead for 
Did you mean: 

enabling and disable form button and fields at runtime

naimkhans_babi
Active Participant
0 Kudos

Dear friends

I am trying to hide some button and fields on certain values passed in form but i m failed to achieve this task please advice me what exactly I am supposed to do. please find below what exactly I am doing. any help will be appreciated.

Thanking you

Regards

Naeem

My Code:

if ( SHOW_DOMAIN = NULL ){
   
    DOMAIN.Prescen = "HIDDEN"
}

here DOMAIN is a text field. and Form language is Javascript., Event is Initial, and run at Client and Server (Both)

but it is not working... please tell me the write way to do this.

Edited by: Naim Khan S Babi on Oct 31, 2009 12:50 PM

Accepted Solutions (1)

Accepted Solutions (1)

S0004343680
Explorer
0 Kudos

hi naim

use this code,i will work

if( data.SHOW_DOMAIN.rawValue == null){
    DOMAIN.presence = "hidden";
}

regards

kalyan

naimkhans_babi
Active Participant
0 Kudos

Thanks kalyan

yes.. the value i was missing...

Regards

Naeem

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi

use this code.


if ( SHOW_DOMAIN = NULL ){
DOMAIN.presence = "hidden";
}

Kind Regards,

Mukesh