Buy Now
Sign in

auto populate textarea content from other textarea

emrahsevgi , December 29 2018, 21:50
E
emrahsevgi 34
December 29 2018, 21:50 #382469
Hi;
I have 2 textarea in same form. both of them for adress. How can I pre-fill 2nd textarea based on 1st textarea?
Other question is
How can I make a phone mask for +90(999)999-9999 like textfield' s default Phone mask ?
thaks for your help.
GreyHead 64
December 30 2018, 14:08 #382473
Hi emrahsevgi,
Which version of ChronoForms are you using?
You can add JavaScript to copy values from one element to another.
Bob
ChronoForms technical support
If you'd like to buy me a coffee or two, thank you very much
E
emrahsevgi 34
December 30 2018, 14:25 #382476
Thank you.
I am using V.6.
Can not we use any placeholder on content box?
GreyHead 64
December 31 2018, 14:04 #382485
 1
 Answer
Hi emrahsevgi,
To copy the contents of a textarea you will need to use JavaScript. A common way to do this is to add a checkbox the user can click if the two addresses are the same - you can then use the Events tab of the checkbox to run a JavaScript function.
You can use Placeholder text in a text area using the Placeholder box in the General tab of the element.
Bob
ChronoForms technical support
If you'd like to buy me a coffee or two, thank you very much
E
emrahsevgi 34
January 01 2019, 22:14 #382498
thanks.
healyhatman 8
January 01 2019, 22:58 #382499
Also in additional attributes you can add I think
data-inputmask:'mask:+90(99)9999-9999' 
or something like that. There's a FAQ about it.
Web developer at SkySpider.com.au - I DO NOT work for ChronoEngine!
Donations: paypal.me/healyhatman
Professional Work: kamron@skyspider.com.au
Custom CF / CC Plugins and Extensions: skyspider.com.au/store
healyhatman 8
January 03 2019, 02:30 #382529
 1
 Answer
OK so my bad it's
data-inputmask:'mask':'+90(999)999-9999'
A 9 means any digit, an A means any capital letter (lowercase will be converted), a lowercase a means uppercase or lowercase, * means any letter or number.
Web developer at SkySpider.com.au - I DO NOT work for ChronoEngine!
Donations: paypal.me/healyhatman
Professional Work: kamron@skyspider.com.au
Custom CF / CC Plugins and Extensions: skyspider.com.au/store