motho 0 Posted January 20, 2014 Report Share Posted January 20, 2014 Hi folks I have a web form i need to complete to place orders. i need to: 1. Click a checkbox2. Put a qty in a text box. Problem is after clicking the checkbox the text box defaults to one, and when I use the Type text Command it is turning 20 into 121 is there a command to clear a field before typing into it? Quote Link to post Share on other sites
giganut 109 Posted January 20, 2014 Report Share Posted January 20, 2014 Can you check the box first, then use the change attribute command with a "NewValue" of $nothing to clear it and then enter the text you need input into the box? change attribute(<id="your-element-here">, "value", $nothing) Quote Link to post Share on other sites
motho 0 Posted January 20, 2014 Author Report Share Posted January 20, 2014 works great, in fact just using change attribute and using my QTY variable makes it right, don't need the $nothing Thanks! Quote Link to post Share on other sites
giganut 109 Posted January 20, 2014 Report Share Posted January 20, 2014 Your welcome I'm glad I could help. Quote Link to post Share on other sites
Code Docta (Nick C.) 638 Posted January 20, 2014 Report Share Posted January 20, 2014 use "change attribute" you can use it to clear before "type text" or you can use it to type the text. To clear: leave blank and after your check box node.Then type text node. Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.