Hi All,
I have a four fields text type , what i want if one field fill ,other three fields will disable.
How can i do this in Reactive Application.
Thanks in advance
Amogh.
Hi Amogh,
I have one question when you want this field disable mean Onclick in input or On Blur.
You can use Js Code or you can use if Esle condition for this.
If you want use JS code on event -
var Input1=document.getElementById($parameters.Input1);
var Input2=document.getElementById($parameters.Input2);
var Input3=document.getElementById($parameters.Input3);
var Input4=document.getElementById($parameters.Input4);
if(Input1.value!=="")
{
document.getElementById($parameters.Input2).disabled = true;
document.getElementById($parameters.Input3).disabled = true;
document.getElementById($parameters.Input4).disabled = true;
}
else if(Input2.value!=="")
document.getElementById($parameters.Input1).disabled = true;
else if(app.value!=="")
document.getElementById($parameters.CASHNumber).disabled = true;
document.getElementById($parameters.LANNumber).disabled = true;
document.getElementById($parameters.CUSTID).disabled = true;
else if(Input3.value!=="")
else
document.getElementById($parameters.Input1).disabled = false;
document.getElementById($parameters.Input2).disabled = false;
document.getElementById($parameters.Input3).disabled = false;
document.getElementById($parameters.Input4).disabled = false;
Regards
Rahul Sahu
Hi,
First of all, it's reactive (or mobile) or traditional web?
In any case, you can control the "disable property" by give it an expression value. You can place in there the condition (example) "variable of field A <> NullTextIdentifier() or variable of field B <> NullTextIdentifier() or variable of field C <> NullTextIdentifier()" and that field, will be disable in one of that conditions.
If you are using Traditional Web paradigm, you will need to use an action in Onchange with the ajax refresh widget to refresh those inputs.
Hope this can help.
Best regards,
Ricardo M Pereira