Trying to make a text field (notes style) disabled, until a selection is made in Combo box

Hi …

I have two fields in a row , one is Combo box and the other is Text field. (Notes Style field)

Till a selection is made in Combo box, user should not be able to enter data in the Text field. It means… text field should be disabled till a selection is made in Combo box.

I have tried creating a field with OS style and used Input Enabled … it is working fine …

but i want the same functionality to be used for Notes Style field. Is it possible? Please help me in this…

Hima

Subject: Trying to make a text field (notes style) disabled, until a selection is made in Combo box

if you r working on web then First try this javascript

if (document.forms[0].comboxname.value ==“”)

{

document.forms[0].fieldname.disabled=true

}

u can hide this field using

document.forms[0].FieldName.style.visibility=‘hidden’

if this not work then take another hidden field to inherrite value of combobox ( sumtimes we cant get handle of combox directly)

and use this

if (document.forms[0].InherritedFieldName.value==“”)

{

document.forms[0].FieldName.disabled=true

}

Hope this works as u want …

Regards,

Sunit

Subject: RE: Trying to make a text field (notes style) disabled, until a selection is made in Combo box

Hi Sunit,

Thanks alot for the response.

I want suggestion for Client. In web it is working fine for me.

But in Notes i am not able to able to apply the same funtionality that i have used

document.getElementById(txtID).readOnly=false;

Please suggest how to achieve this.

Hima

Subject: RE: Trying to make a text field (notes style) disabled, until a selection is made in Combo box

hey on Notes Client this code will not work which u have written coz its a javascript code

so there r two method to achive ur goal

1 . Use Hide when on ur Field so tht the field would be visible only if the Combo box has some text in it

Like this ComboboxName=“” and tick on hide

so the field will not be visible untill n unless combo not empty

  1. now if u want to just enable and disable the field

there is no such method in lotusScript or Formula language tht can hide / enable or disable a perticular field

so take a two field(tht u want to enable or Disable) Keep 1 editable and keep another Computed and apply hide when on them according to the combobox status(Filled Not Filled)

If u find any problem then reply me

Regards,

Sunit

Subject: RE: Trying to make a text field (notes style) disabled, until a selection is made in Combo box

Hi Sunit,

Thanks alot for the response and time .

I tried …

Now the problem is that … text1 field is empty by default, so …even i have added one computed field text2 which has text1 value but it doesnot make any difference in the way it looks, it works same as the hidewhens… which i dont want.

Let me explain you clearly …

When user opens the form in notes, both Combo and text field should be visible, text field should be disabled (it should not hide )… user should not be able to enter data in the text field till combo box is selected. and it should work vice versa.

They say that Input enabled works in R7, but it is not working for text field.

When i change the text field properties to ‘OS style’ and use Input Enabled it is working … in the way i want … but wiht ‘Notes style’ i am not able to acheive this…

Please please let me know how to do that… Is there any way of acheiving it … or else should i change the text property to ‘OS style’

Hima

Subject: RE: Trying to make a text field (notes style) disabled, until a selection is made in Combo box

Look there is no way of disabling the field with lotus script or formula language except tht OS style u mentioned

now m saying u to use computed field so tht the user will not be able to edit any data in it and hence it will be considered as disabled though it will not look like a disabled field in javascript

when u load a form … at that tym m considering ur Combo has no value(Empty) tht movement show Computed field

just writting a hide when for Computed field(cmbname!=“”) and write (cmbname=“”) for editable one

so when there is no value in cmb then Computed field will be visible and when user will select value in combo then editable field will be visible … i ve tried on my own and it works fine

and if m still wrong then u must change text property to OS style

Reply me wht happened …

Regards,

Sunit

Subject: RE: Trying to make a text field (notes style) disabled, until a selection is made in Combo box

Hi Sunit,

I am really very sorry for irritating you …

I completely understand what you are saying,

Thing is that … I want the user to know that there is a field in which information has to be filled up. I cant set any default value in the computed field (text2) as it gets value from text1 which is empty by default.

It appears to be playing with hidewhens, while it is not… bcos we are displaying different fields based on the combo box selection.

Input Enabled is working for all other properties of a field, with out any default value except for ‘Text’ i dont know why?

Even for ‘Text’ it will work until and unless there is a default value for the text field and i dont have any default value for the text field that i want to disable.

Thanks alot for your time and help.

Hima