Asjad Aamir
Forum Replies Created
-
Forum: Plugins
In reply to: [Calculated Fields Form] Hide and Show fieldsI just want to know how to combine this below code with your additional script?
<script>jQuery(document).on('change', '[id*="fieldname40_"],[id*="fieldname16_"]', function(){ IGNOREFIELD('fieldname14'); IGNOREFIELD('fieldname42'); IGNOREFIELD('fieldname43'); IGNOREFIELD('fieldname44'); if(AND(getField('fieldname40').val(true, true) == 'Basis-Shop', getField('fieldname16').val(true, true) == 'Normales Angebot (Jetzt kaufen)')) { ACTIVATEFIELD('fieldname14'); } else if(AND(getField('fieldname40').val(true, true) == 'Top-Shop', getField('fieldname16').val(true, true) == 'Normales Angebot (Jetzt kaufen)')) { ACTIVATEFIELD('fieldname42'); } else if(AND(getField('fieldname40').val(true, true) == 'Top-Shop', getField('fieldname16').val(true, true) == 'Auktionsangebot')) { ACTIVATEFIELD('fieldname44'); } else if(AND(getField('fieldname40').val(true, true) == 'Basis-Shop', getField('fieldname16').val(true, true) == 'Auktionsangebot')) { ACTIVATEFIELD('fieldname43'); } });</script>
Forum: Plugins
In reply to: [Calculated Fields Form] Hide and Show fieldsI mean to say can you paste merged code again?
Forum: Plugins
In reply to: [Calculated Fields Form] Hide and Show fieldsScript tags are separate for this? If possible can you merge it with previous code?
Forum: Plugins
In reply to: [Calculated Fields Form] Hide and Show fieldsOkay. It works. But the problem is when I preview the form and values are pre selected, it doesn’t process the code. But when I click on drop down and start selecting values, it then processes that HTML code.
Forum: Plugins
In reply to: [Calculated Fields Form] Hide and Show fieldsAnd one more thing, where should I insert this HTML field? at the very start of the form or in the middle?
Forum: Plugins
In reply to: [Calculated Fields Form] Hide and Show fieldsJust for my knowledge, what does true, true indicate?
Forum: Plugins
In reply to: [Calculated Fields Form] Hide and Show fieldsThis isn’t working.
<script> jQuery(document).on('change', '[id*="fieldname40_"],[id*="fieldname16_"]', function(){ IGNOREFIELD('fieldname14'); IGNOREFIELD('fieldname42'); IGNOREFIELD('fieldname43'); IGNOREFIELD('fieldname44'); if(AND(getField('fieldname40').val() == 'Basis-Shop', getField('fieldname16').val() == 'Normales Angebot (Jetzt kaufen)')) { ACTIVATEFIELD('fieldname14'); } else if(AND(getField('fieldname40').val() == 'Top-Shop', getField('fieldname16').val() == 'Normales Angebot (Jetzt kaufen)')) { ACTIVATEFIELD('fieldname42'); } else if(AND(getField('fieldname40').val() == 'Top-Shop', getField('fieldname16').val() == 'Auktionsangebot')) { ACTIVATEFIELD('fieldname42'); } else if(AND(getField('fieldname40').val() == 'Basis-Shop', getField('fieldname16').val() == 'Auktionsangebot')) { ACTIVATEFIELD('fieldname42'); } }); </script>
Forum: Plugins
In reply to: [Calculated Fields Form] Hide and Show fieldsIf I use entire code in HTML as you suggested like this one:
<script> jQuery(document).on('change', '[id*="fieldname2_"],[id*="fieldname3_"]', function(){ IGNOREFIELD('fieldname1'); if(AND(getField('fieldname2').val() == 3, getField('fieldname3').val() == 10)){ ACTIVATEFIELD('fieldname1'); } }); </script>
I don’t have to press calculate button to proceed it?
Forum: Plugins
In reply to: [Calculated Fields Form] Hide and Show fieldsI have multiple fields to activate. So, I will write in same HTML field for all fields?
(function(){ IGNOREFIELD(fieldname14|n); IGNOREFIELD(fieldname42|n); IGNOREFIELD(fieldname43|n); IGNOREFIELD(fieldname44|n); if(AND(fieldname40 == 'Basis-Shop', fieldname16 == 'Normales Angebot (Jetzt kaufen)')){ ACTIVATEFIELD(fieldname14|n); } else if(AND(fieldname40 == 'Top-Shop', fieldname16 == 'Normales Angebot (Jetzt kaufen)')){ ACTIVATEFIELD(fieldname42|n); } else if(AND(fieldname40 == 'Basis-Shop', fieldname16 == 'Auktionsangebot')){ ACTIVATEFIELD(fieldname44|n); } else if(AND(fieldname40 == 'Top-Shop', fieldname16 == 'Auktionsangebot')){ ACTIVATEFIELD(fieldname45|n); } })()
Forum: Plugins
In reply to: [Calculated Fields Form] Hide and Show fieldsI don’t have to specify values of fieldname2 and fieldname3 here in HTML?
Forum: Plugins
In reply to: [Calculated Fields Form] Hide and Show fieldsHi, so it worked. Now the issue is I have to press calculate button to work it. I have turned off calculate dynamically option in form settings as I want other fields to only calculate when I press button. Is there any way that this field executes function right away without pressing calculate button?
Forum: Plugins
In reply to: [Calculated Fields Form] Hide and Show fieldsI just checked, other fields are still showing
Forum: Plugins
In reply to: [Calculated Fields Form] Hide and Show fieldsHi, Will fieldname1 remain hidden from the form if condition is not met?
Forum: Plugins
In reply to: [Calculated Fields Form] Hide and Show fieldsYou didnt understand my question. I’m saying that the field is dependent on other two fields. Now issue is one of those fields is there all the time and second one is used everytime. So I want that that one field should only show when I use options from both fields
Forum: Plugins
In reply to: [Calculated Fields Form] Hide and Show fieldsAnyone here?