• Resolved requincreative

    (@requincreative)


    Thanks for the plugin. It is very handy to have for formatting.

    I have built a plugin that extends GF using the API and it makes use of the
    $success = GFAPI::update_entry( $entry ); method.

    if (isset($_POST['entry_id'])) {
    
    	$entry_id = $_POST['entry_id'];
    
    $entry = GFAPI::get_entry($entry_id);
    
    	$field = $_POST['field_id'];
    	$status = $_POST['status'];
    
    $entry[$field] = $status;
    
    $success = GFAPI::update_entry( $entry );
    
    }

    Everything was working fine until I checked the “Enable WYSIWYG” field for the text areas. Now when when my API callback is executed it returns a blank value to all textarea fields.

    I disabled WYSIWYG on one textarea and it worked normally for that field while returning empty for the others.

    Any thoughts on how to adapt my code to make it work with the WYSIWYG active?

    https://www.ads-software.com/plugins/gravity-forms-wysiwyg-ckeditor/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author ovann86

    (@ovann86)

    Hi requincreative –

    Could you try updating the plugin to the latest version?

    There were two errors in the code that may be causing the issue. Version 1.01 and after has these errors fixed.

    For me I noticed the errors broke the ‘Password’ field’s strength checker – maybe it’s also causing your issue?

    Let me know how you go.

    Plugin Author ovann86

    (@ovann86)

    Going to assume this is resolved and close the ticket.
    Let me know if it’s still any issue.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘WYSIWYG Textarea Entry Values Lost on Update via API’ is closed to new replies.