- Posts: 156
- Thank you received: 0
adding more info click to custom fields?
Please Log in or Create an account to join the conversation.
if($fieldName=='ein') echo '<a type="text/html" rel="height[600];width[500]" class="jcepopup" href="index.php?option=com_content&view=article&id=22:help1&catid=7:iq">?</a>';
after the code:
echo $this->fieldsClass->getFieldName($oneExtraField);
and that will add a ? for the ein field. Just repeat the line several times and change the fieldname check and the link and you're done.
Please Log in or Create an account to join the conversation.
Make a selection
Some fields show up, one of these fields is a radio selection if based on what they selec there I would like to show more fields below it or not..
Also I want to style these a bit better with divs and graphics what would you suggest?
Please Log in or Create an account to join the conversation.
For the styling, with firebug you can get the class names of the different elements and use them in your CSS style definitions. You can do a lot of nice styling with CSS only.
Please Log in or Create an account to join the conversation.
var hide = new Array();
var show = new Array();
if(obj.id=='user_choice_activate_both'){
show.push('number_choice');
if(obj.name=='data[order][number_choice]'){
var hide = new Array();
var show = new Array();
if(obj.id=='change_number'){
show.push('accountname');
show.push('billingaddress');
show.push('phone_number');
show.push('carrier');
show.push('account_number');
show.push('pin');
show.push('ssn');
show.push('esnnumber');
show.push('mobile_serial_lock_code');
hide.push('ein');
hide.push('iqaccount'); }
}}}
....
i am trying to get something like this, what do you think, would it work? of course every selection will ask if they want to keep their number and based on that those fields show.. Thanks for your help
Please Log in or Create an account to join the conversation.
if(obj.name=='data[order][user_choice]'){
var hide = new Array();
var show = new Array();
// push the fields to say which one should be hidden and which one should be displayed based on the id
}else if(obj.name=='data[order][number_choice]'){
var hide = new Array();
var show = new Array();
// push the fields to say which one should be hidden and which one should be displayed based on the id
}
Please Log in or Create an account to join the conversation.
the
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
please feel free and login to the site to help... it would only take 2 minuets of your time.... i just don't can't seem to understand why it wouldn't work.
Please Log in or Create an account to join the conversation.
what i am trying to do is when they select that they want to keep their number i want them to see these fields
Please Log in or Create an account to join the conversation.
just before the switchFields(show,hide); line in your working code of your previous message.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
else if(obj.id=='numberchoice_newnumber'){
not:
else(obj.id=='numberchoice_newnumber'){
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
if(obj.name=='data[order][user_choice]'){
by:
var doextra = false;
if(obj.name=='data[order][user_choice]'){
doextra =true;
and:
switchFields(show,hide);
by:
switchFields(show,hide);
if(doextra){
var keepnumber = document.getElementById('numberchoice_keepnumber');
if(keepnumber.checked){
hikashopHandleCases(keepnumber);
}
}
that way, when the first selection option is selected and that the number selection is on, the hikashopHandleCases function will be called on the number selection and make the fields displayed in necessary.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
I didn't told you to replace
else if(obj.name=='data[order][numberchoice]'){
but
if(obj.name=='data[order][user_choice]'){
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.