How do I create a display of text, radio buttons and submit button in Visual Studio such that I can display my text to the user so that
The user cannot edit the text
The user's choice of radio button and the displayed question can be stored on clicking the button
(1) Simple: set enabled="false" for the control
&
(2) Store the information from the radio button into a session variable on btn submit click, I'm pretty sure you can edit the string you save
Related
I have asked about this question before this but no response. So I will try to ask again the question. I have this two buttons in form and I want to display those buttons in view. One button called "Close Active" and another one is "Close Draft".
So for button "Close Active", I want to show the button only in view with document status of "Active" and "Lock" while for button "Close Draft", I want to show the button only in view with document status of "Draft". I try using hide-when but it did not display.
For "Close Draft"
!(PStatus = "Draft")
For "Close Active"
(Pstatus != "Active" : "Lock")
I know how to hide-when this button in Lotus Notes, but I can't found any example of hide button for web. Any help I appreciated. Thanks!
So based on #RichardSchwartz suggestion, I fixed the problem after test it in Lotus Notes.
I just need to move exclamation sign to front like this:
!(PStatus = "Active" : "Lock");
I have a new form with fields called Field 1,Field 2 and one button. On click of that button, dialog box will display with some radio buttons. here i want to pass the selected radio button values to Field 2.
How to achieve it?
Appreciate if anyone help me out.
In dialog box, it looks like below
Just name your dialog box's radio button field the same like your target field in form (Field 2 in your case) and make sure
you don't use [NOFIELDUPDATE] option in #DialogBox
parameter noFieldUpdate is not set to True in notesUIWorkspace .DialogBox().
I am creating a windows form using C#. My problem is that I want to set focus on the Text Box control and also select the log in button at the same time.
If I enter something in the Text Box, it accepts that string.
But when I press "Enter" key, I want to fire the log in button click event directly.
Set a KeyUp listener on the TextBox and listen for the Enter key. If they press enter then submit the form. You don't need to specifically select the login button. Focus on the text box.
**if I had a text box and a button.if I typed a letter in text box then the control has to be automatically focus on the button.so that when I hit enter the code under the button will execute **
I tried button1.focus();// in text box but it transfering the control to button so that I cant able to type in text box.
1.Select the form on which the button resides.
2.In the Properties window, set the form's AcceptButton property to the Button control's name.
I have a form with several tabs using spry tabbed panels in Dreamweaver CS6. I have a save button on every page which when clicked take the user to the next tab. Invariably they don't click the save button and just click the next tab and lose their changes. Is there a way I can force a submit when they click the tab ?