cancel
Showing results for 
Search instead for 
Did you mean: 

Text Field Conditionally

Former Member
0 Kudos

Hi every one,

I want to print text field conditionally based on agreement type.

Case1-For agreement type1 don't need to print text field.(always hide)

case 2-For agreement type2 need to print text field always,if initial or not.


Thanks in advance.


Accepted Solutions (0)

Answers (1)

Answers (1)

michael_kozlowski
Active Contributor
0 Kudos

In Script of text field at initialize you can try similar like that:

if(this.AGREEMENT_TYPE.rawValue == "2" )

{

  this.presence = "visible";

}

else

{

this.presence = "hidden";

}

Former Member
0 Kudos

Hi Michael Kozlowski ,

I am tried above code, but i am getting text field in 2 agreement types.

michael_kozlowski
Active Contributor
0 Kudos

I'm not quite sure what's your requirement. Could you please elaborate in more detail?

Former Member
0 Kudos

As per my requirement i have created 2 text fields(Text Field1,Text Field2) in design view.

And i have 2 agreement types(Type1 and Type2),

If i can execute type1,i want to show only Text Field1(if i it is initial or not)

If i can execute type2,i want to show Text Field1 and Text Field2(if i it is initial or not).


michael_kozlowski
Active Contributor
0 Kudos

In Script of text field2 at initialize you can try similar like that:

if(this.AGREEMENT_TYPE.rawValue == "1" )

{

  this.presence = "hidden";

}

else

{

this.presence = "visible";

}

Former Member
0 Kudos

U mean AGREEMENT_TYPE actual agreement right?

and ==1 means field or agreement? or numeric 1?

michael_kozlowski
Active Contributor
0 Kudos

Ram ch wrote:

U mean AGREEMENT_TYPE actual agreement right? <-- name of field agreement type

and ==1 means field or agreement? or numeric 1? <-- value of the field agreement type

Former Member
0 Kudos

No result....