1. techjoomla
  2. Features Request
  3. Monday, September 22 2014, 11:43 AM
Hello Guys,

I want to suggest one feature request.

In the text field type there should one checkbox available for it. Which can copy other text field value if it is checked.

Like same as above field.

For eg.
If I am using a form to get personal details along with the company details. I should be able to copy the personal details (text fields ) into the company details (text fields) or vice versa

I hope you would consider my suggestion. It would help you to add an extra feature in easy-profile.

Thanks in advance.

Durgesh
admin Accepted Answer
Admin
Hi,
thanks for your suggestion.

for now this is possible only with Javascript Knowledge.

We will add on your TODO list, but this is not a priority feature :(
  1. more than a month ago
  2. Features Request
  3. # 1
techjoomla Accepted Answer
Thanks for your feedback.
How to do this using custom javascript?
Can you please send custom javascript for implementing this in my project using easy-profile?
  1. more than a month ago
  2. Features Request
  3. # 2
admin Accepted Answer
Admin
Hi,
sorry for late reply, try to follow these steps:

- create 2 textarea field called "address 1" and "address 2" with alias "address_1" and "address_2"
- create 1 checkbox with 1 option "1|Copy value" with alias "copy_from1_to2"
- set this condition on checkbox field: if equal to custom value 1 hide "address 2" field
- add this code to your template:
jQuery(document).ready(function($)
{
$('#jform_copy_from1_to20').change(function(){
if($('#jform_copy_from1_to20').is(':checked')){
$('#jform_address_2').val($('#jform_address_1').val());
}
});
}

id of checkbox fields are built so: "#jform_" + "alias of field" + "number of option", so for alias "copy_from1_to2" we have "jform_copy_from1_to20"
  1. more than a month ago
  2. Features Request
  3. # 3
  • Page :
  • 1


There are no replies made for this post yet.
However, you are not allowed to reply to this post.
Sorry, the discussion is currently locked. You will not be able to post a reply at the moment.