-
1. Re: Text input box to show in another text field
resdesign Nov 22, 2014 10:30 AM (in response to ianaa)Try this assuming that you already have the inputField set up as an input field.
var inputValue = sym.$('inputField').value;
// other text
sym.$('Text').html(inputValue);
-
2. Re: Text input box to show in another text field
ianaa Nov 22, 2014 11:02 AM (in response to resdesign)I believe the inputField is set accordingly. And including your reply, here's what I've got on my stage:
sym.$("Name").attr('contentEditable', true);
var inputValue = sym.$("Name").value;
// other text
sym.$("Signature").html(inputValue);
Thus far, this does not work. "Name" field is Text1 (inputField) and the "Signature" is Text2 (text box)
I'm new to all this so I've prob got something wrong...do you know what I should adjust?
-
3. Re: Text input box to show in another text field
resdesign Nov 22, 2014 11:44 AM (in response to ianaa)Sorry, try this:
var name = sym.$("Name");
inputName = $('<input />').attr({'type':'text', 'value':'', 'id':'name'}).appendTo(name);
var signature = sym.$('Signature');
function updateField(){
signature.html(inputName.val());
}
$(document).on("change, keyup", signature, updateField);
-
4. Re: Text input box to show in another text field
resdesign Nov 22, 2014 11:46 AM (in response to ianaa)Here is the sample:
-
5. Re: Text input box to show in another text field
ianaa Nov 22, 2014 5:43 PM (in response to resdesign)Okay I got this working, thanks so much!!! I do however have one other questions. Is there a way to format the size and look of the input field? I'd like it to match the design of the page and I don't know how to adjust the attributes.
Can you help with that...???
~iana~
-
6. Re: Text input box to show in another text field
resdesign Nov 22, 2014 5:46 PM (in response to ianaa)Yes. You can use css like this:
inputName .css ({'font-size': 14,'width': 350,'background-color': '#0a81fb'});


