• I love this form manager–the ability to turn the submitted form into a post is ideal for my application. In addition to users attaching files to the form, I would very much like for them to be able to insert links.

    Is there a way to either: 1) include a “Link” field much like the “upload file”field or 2) use an editor with the ability to easily insert a link (much like is possible with the editor for this forum)?

    https://www.ads-software.com/extend/plugins/wordpress-form-manager/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter khermberg

    (@khermberg)

    Does anyone have an answer to this, or an alternative method for accomplishing it?

    Plugin Author hoffcamp

    (@hoffcamp)

    Plugin Author hoffcamp

    (@hoffcamp)

    You could create a new item type, but you will have to do this every time you update the plugin. Copy and paste the following at the end of types/text.php:

    $fm_controlTypes['url'] = 'fm_urlControl';
    class fm_urlControl extends fm_textControl
    {
    	public function getTypeName(){ return "url"; }
    	public function getTypeLabel(){ return "URL"; }
    	public function parseData($uniqueName, $itemInfo, $data){
    		return '<a href="' . htmlspecialchars( $data ) . '">' . $data . '</a>';
    	}
    }
    Thread Starter khermberg

    (@khermberg)

    Thanks. This is helpful. The code addition you suggested works well on an initial test and only using it will reveal if there are unintended consequences.

    Having to change the file each time the plugin is updated is not ideal, but it is manageable. Would you be wiling to incorporate this into your next update so that the code is then there through future updates? It is a feature some folks will find useful and that will not likely cause trouble for folks who do not want it.

    Thanks for your help and your plugin.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Plugin: WordPress Form Manager] Add link or url’ is closed to new replies.