javascript with lotus domino -refer richtext field in subform

hi
i am working in lotus domino
I have richtext field in subform which has button described in html and it is embedded in the main form.
I want to disable this button by clicking the another button.
how it can be done
kousisAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

WoodyRoundUpCommented:
I am not sure how Lotus Domino is like, but in HTML in should be like this:

<form name="formname" method="post" action="pagename">
<input type="button" name="button_to_disable" value="button 1" onclick="formname.button_to_be_disabled.disabled=1;">
<input type="button" name="button_to_be_disabled" value="button 2">
</form>
kousisAuthor Commented:
It would be fine if i know related to lotus domino
ZvonkoSystems architectCommented:
When you open that Notes Form in browser (open the web page in browser) then look for the html source of that browser page and post the html source here.
kousisAuthor Commented:
let me explain you.
I have rich text field in subform and code writen it to create a button ie
SendButton:="<td><input type=button id='Send' name='send' style=font-size:7pt;font-family:verdana;width:50;color:#000000;background:#d3d3d3 value="+"Send"+" </td>";
"[<table border=0 cellpadding=5 cellspacing=0><tr></tr><tr></tr><tr></tr><tr><tr></tr><tr></tr><tr></tr><tr>"+@If((!@IsDocBeingEdited ) ;"";@If(@IsDocBeingEdited;SendButton;""))+"</tr></table>]"
then I've another form ,clicking the button in this form should disable the button in subform
ZvonkoSystems architectCommented:
In the upper source you missed the closing > of the SendButton button.
Also <tr>s withouth <td>s make not  too much sense (beside that you have <tr><tr> sequences).
Check this:
SendButton:="<input type=button id='Send' name='Send' style='font-size:7pt;font-family:verdana;width:50;color:#000000;background:#d3d3d3' value='Send'>";
"[<table border=0 cellpadding=5 cellspacing=0><tr><td></td></tr><tr><td></td></tr><tr><td></td></tr><tr><td></td></tr><tr><td></td></tr><tr><td></td></tr><tr><td>"+@If((!@IsDocBeingEdited ) ;"";@If(@IsDocBeingEdited;SendButton;""))+"</td></tr></table>]"


And the "other" button needs this onClick event handler in JavaScript:

this.form.Send.disabled=true;

Be aware that I changed your button name to Send from send, and in JavaScript is Uppercase/Lowercase relevant.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
JavaScript

From novice to tech pro — start learning today.