Reputation: 19
The button in the form applet should have two different names one before pressing the button and one after pressing the button.( Send OTP and after sending it Should change to Verify OTP).
Upvotes: 0
Views: 255
Reputation: 1
Apart from the above answer, You can also achieve this with Toggle applet as well.
Steps:
Create Toggle applet copying the main applet.Set a flag when Send OTP is successfully submitted from main applet.
Toggle Applet will be displayed now when flag is set. Update the button name to Verify OTP in the Toggle Applet.
For an ideal situation, I would suggest a design change in this requirement. Create 2 buttons Send OTP and Verify OTP in the form applet. Button enable disable logic as per business requirement. I have a similar requirement in my project for Verifying Finger Print.
Upvotes: 0
Reputation: 1589
You haven't mentioned which version of Siebel you are using. Your requirement seems to be to change the text on the button control dynamically. Couple of ways to do this. If you are on OpenUI, you can use jQuery to easily change button captions. You will have to write a PM to bind to the InvokeMethod method. This code will be outside the repository.
If you are on high interactivity, you can achieve this via browser script. There are browserscript functions FindControl with which you can change control attributes. This code will go into applet browserscripts, and you need to run genbscipt after compilation.
Hope it helps.
Upvotes: 2