• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: Conditional Mapping - Textarea Help

Conditional Mapping - Textarea Help 9 years 4 months ago #33404

  • ahenry4
  • ahenry4's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 2
I'm using the following script:
//mappings are stored within the $mappings array
for($i=0; $i<count($mappings); $i++){
//iterating through mappings
 
  if($_POST['form']['concerns'] == 'Please let us know what is important to you...'){
 
    if($mappings[$i]->ordering != 1){
      unset($mappings[$i]);
    }
  }else{
    if($mappings[$i]->ordering != 2){
      unset($mappings[$i]);
    }
  }
 
}

It isn't working. I'm using onBlur/OnFocus in textareas so if user doesn't enter a new value in the textarea, the Default Value is sent to database table! I tried to use the conditional mapping script to tell the form to not use mapping 1 if the textarea is equal to the Default Value "Please let us know what is important to you..."
The administrator has disabled public write access.
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!