It seems to me that there is a bug in the code. I am not sure about the fix for it. It is best to appeal to @katzwebdesign to provide it.
The following code snippet in edit-form.php is an ill-formed PHP code (function has only case clauses with missing switch statement). From the looks of the details, I think the code is intended to work without changing the field name as we talked about earlier.
I am not even sure that this is the cause of the problem.
Zack?
Thanks.
Venkat
The code snippet in edit-form.php:
public function directory_add_default_values() {
?>
case “entrylink” :
field.label = “<?php echo esc_js( __(“Go to Entry”, “gravity-forms-addons”) ); ?>”;
field.adminOnly = true;
field.choices = null;
field.inputs = null;
field.hideInSingle = true;
field.useAsEntryLink = ‘label’;
field.type = ‘hidden’;
field.disableMargins = true;
break;
case ‘usereditlink’:
field.label = “<?php echo esc_js( __(“Edit”, “gravity-forms-addons”) ); ?>”;
field.adminOnly = true;
field.choices = null;
field.inputs = null;
field.hideInSingle = false;
field.useAsEntryLink = false;
field.type = ‘hidden’;
field.disableMargins = 2;
break;
case ‘directoryapproved’:
field.label = “<?php echo esc_js( __(“Approved? (Admin-only)”, “gravity-forms-addons”)); ?>”;
field.adminLabel = “<?php echo esc_js( __(“Approved?”, “gravity-forms-addons”)); ?>”;
field.adminOnly = true;
field.choices = null;
field.inputs = null;
if(!field.choices)
field.choices = new Array(new Choice(“<?php echo esc_js( __(“Approved”, “gravity-forms-addons”)); ?>”));
field.inputs = new Array();
for(var i=1; i<=field.choices.length; i++)
field.inputs.push(new Input(field.id + (i/10), field.choices[i-1].text));
field.hideInDirectory = true;
field.hideInSingle = true;
field.type = ‘checkbox’;
break;
<?php
}