Advertisement
Guest User

Untitled

a guest
Feb 23rd, 2018
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. add_filter('frm_setup_new_fields_vars', 'customize_dfe', 25, 2);
  2. function customize_dfe( $values, $field ) {
  3. if ( $field->id == 182 && !empty( $values['options'] ) ){//Replace 125 with the ID of your dynamic field
  4. $temp_values = $values;
  5. $temp_values['form_select'] = 170; //change 30 to the id of the second field you want to show in your dynamic field
  6. $field2_opts = FrmProDynamicFieldsController::get_independent_options( $temp_values, $field );
  7. foreach ( $values['options'] as $id => $v ) {
  8. $values['options'][ $id ] .= ' '. $field2_opts[ $id ];
  9. }
  10. }
  11. return $values;
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement