Skip to content

Instantly share code, notes, and snippets.

add_filter('fluentform_rendering_field_data_select', function ($data, $form) {
$targetFormID = 2;
//google sheet shared as CSV link
$csvUrl = 'https://docs.google.com/spreadsheets/d/e/2PACX-1vSQM0ay3KgEmTp64M7ZZ5n5QXHDsSzaaJcVCuIHBvgMIw32foNpdfd4jNnUMua8b5Mavb6E4jox_nic/pub?output=csv';
$columName = 'Opex Vessel Categories'; // 'Players' is the column name
$uniqueData = false; // remove duplicate values
if ($form->id != $targetFormID) {