passing value to jformfields - Joomla! Forum - community, help and support
hi,
i've knocked component using component creator , messing edit 'item' form. i've realised joomla! using jformfields, have learned using javascript pass values 1 field isn't working. have done so, previously, using .value , adding innerhtml field's input, submits.
essentially, user inputs number values create 'item', 2 other fields automatically fill in calculated percentage (so don't have math). can making regular form , using javascript, if have added id labels jformfields in component's xml file, nothing happens. did think hide rendered jformfields user, create entirely new form like...and pass values field ids jformfield's values..but doesn't work either.
i've read custom form fields, , getvalue of joomla fields...but, aaargh, it's not making sense me.
can suggest solution, please?
thanks,
chris
i've knocked component using component creator , messing edit 'item' form. i've realised joomla! using jformfields, have learned using javascript pass values 1 field isn't working. have done so, previously, using .value , adding innerhtml field's input, submits.
essentially, user inputs number values create 'item', 2 other fields automatically fill in calculated percentage (so don't have math). can making regular form , using javascript, if have added id labels jformfields in component's xml file, nothing happens. did think hide rendered jformfields user, create entirely new form like...and pass values field ids jformfield's values..but doesn't work either.
i've read custom form fields, , getvalue of joomla fields...but, aaargh, it's not making sense me.
can suggest solution, please?
thanks,
chris
hi,
jform fields regular html input elements. thing need update javascript target elements. example using jquery:
regards
jform fields regular html input elements. thing need update javascript target elements. example using jquery:
code: select all
jquery('input[name="jform[title]"]').val('my value');
regards
Comments
Post a Comment