douji9518 2019-08-12 11:49
浏览 32

如何将重力表单列表中的列转换为多文件上载?

I have a problem regarding how to convert a column inside a Gravity Form List field to a multi-file upload, I tried using the code below I found online and it is not converting the column input into a multi file upload.

I also tried using the plugin "Ajax Upload" but this only support single file upload.

add_filter( 'gform_multifile_upload_field', 'create_custom_file_upload_field', 10, 3 ); 
function create_custom_file_upload_field( $field, $form, $field_id ) {
    $field = new GF_Field_FileUpload( array(
        'id'                => $field_id,
        'multipleFiles'     => true,
        'maxFiles'          => 5,
        'maxFileSize'       => '',
        'allowedExtensions' => 'csv'     
    ) );

   return $field;
}

I should be able to make a column into a multi-file upload and the selected file URLs should reflect on the Gravity VIEW.

  • 写回答

1条回答 默认 最新

  • drtohng5613 2019-08-12 21:00
    关注

    The only solution I'm aware of that supports including "repeating" multi file upload fields is my Gravity Forms Nested Forms. You would use this instead of a List field.

    评论

报告相同问题?

悬赏问题

  • ¥15 求解O-S方程的特征值问题给出边界层布拉休斯平行流的中性曲线
  • ¥15 谁有desed数据集呀
  • ¥20 手写数字识别运行c仿真时,程序报错错误代码sim211-100
  • ¥15 关于#hadoop#的问题
  • ¥15 (标签-Python|关键词-socket)
  • ¥15 keil里为什么main.c定义的函数在it.c调用不了
  • ¥50 切换TabTip键盘的输入法
  • ¥15 可否在不同线程中调用封装数据库操作的类
  • ¥15 微带串馈天线阵列每个阵元宽度计算
  • ¥15 keil的map文件中Image component sizes各项意思