• Hello There

    I am having problem with upload custom field.
    After I submit ticket, the file from this custom field is not sent.

    Has anyone had the same problem?

    Please help me solve this issue.
    Thanks

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author awesomesupport

    (@awesomesupport)

    There’s a potential bug in that custom field type – we’re looking into it and if we can identify it will get it fixed in the next version.

    Plugin Author awesomesupport

    (@awesomesupport)

    Hi:

    The beta for the next version with the fix for custom upload fields is here: https://getawesomesupport.com/betafiles/beta-files-3-6/

    Please give it a whirl and let me know if the files are being uploaded. They should appear just under the opening post for the ticket (where the regular ticket attached files appear).

    Thread Starter Jose Goncalves

    (@zehatm)

    Hello there,

    Thanks for the feedback and for trying solve the problem. I truly appreciate it.

    I downloaded the beta version and replaced in my wordpress installation to test, but the file has not been uploaded yet in administrative area where the regular ticket attached files appear, as you indicated. Please let me know if you have another solution.

    Taking advantage of another topic, I found a issue in the form’s checkbox custom fields and would like to request a review. Is it possible that the checkbox fields also have a title field like the radiobox fields?

    I usually solve this problem by changing to line 30 on file
    “includes/custom-fields/field-types/class-cf-checkbox.php”

    From:
    $ Output = ”;

    For:
    $ Output = ‘<label class = “wpas-label-radio”> {{label}} </ label>’;

    Thanks

    Plugin Author awesomesupport

    (@awesomesupport)

    Hi:

    Can you provide the code that you’re using to create your custom field?

    Regarding the checkbox fields title, that should be fixed in the version you just downloaded.

    Thanks.

    Thread Starter Jose Goncalves

    (@zehatm)

    Hi,

    Sure! Here is the code I’m using to generate the upload custom field:

    
    if ( ! defined( 'WPINC' ) ) {
    	die;
    }
    
    add_action( 'plugins_loaded', 'wpas_user_custom_fields' );
    
    function wpas_user_custom_fields() {
    	$imagem_do_registro_args = array(
    		'title'			=> 'Imagem do Registro',
    		'field_type' 		=> 'upload',
    		'capability' 		=> 'edit_ticket',
    		'multiple'		=> false,
    		'label'      		=> 'Insira aqui a imagem do protocolo',
    		'log' 			=> true
    	);
    	wpas_add_custom_field( 'imagem_do_registro', $imagem_do_registro_args );
    }
    
    Plugin Author awesomesupport

    (@awesomesupport)

    Hi:

    Can you try something like this instead?

    
    add_action( 'wpas_submission_form_inside_after_subject', 'my_upload_field_frontend', 1 );
    function my_upload_field_frontend( ) {
    $imagem_do_registro_args = array(
    'title' => 'Imagem do Registro',
    'field_type' => 'upload',
    'capability' => 'edit_ticket',
    'multiple' => false,
    'label' => 'Insira aqui a imagem do protocolo',
    'log' => true
    );
    wpas_add_custom_field( 'imagem_do_registro', $imagem_do_registro_args );
    }
    Thread Starter Jose Goncalves

    (@zehatm)

    Hi,

    I tried so, but unfortunately it still not work. The file does not appear in the ticket management area.

    But now at least when the file is required the form can be completed. Which was not possible before.

    Thanks

    Plugin Author awesomesupport

    (@awesomesupport)

    Hi:

    Are you using the latest beta version? Can you try it with just AwesomeSupport enabled on your site and all other plugins and themes disabled? The code I posted was tested on our site and it definitely works – the uploaded file shows up under the opening ticket post (it does not show up in the custom fields metabox but under the opening post).

    Thanks.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Problem with Upload Custom Field’ is closed to new replies.