I am trying to produce a simple form. Three input fields:
name
email
message
Two buttons
submit
reset
I have done this kind of thing using FMX, but I can’t seem to get it to a simple thing like reset the field.
I have attached a file, There also does not seem to be much help out there for this.
Any help will be very much appreciated.
Thanks in advance
system
2
Give instance names to the 3 input text fields, like these:
name_txt
email_txt
message_txt
Then, apply this script to a new layer named, let’s say, actions:
myButton.onRelease = function(){
name_txt.text = “”;
email_txt.text = “”;
message_txt.text = “”;
}
Do something similar for submit button:
submitBtn.onRelease = function(){
name = name_txt.text
email = email_txt.text
message = message_txt.text
//and then send variables to wherever you want to use them
}
good luck