• Hi
    When using custom text field, I have troubles with HTML

    Data in FIELD## settings window:
    “Text Content” textarea : Add some text or <strong>HTML</strong> here

    Text output in form : Add some text or <strong>HTML</strong> here style='text-align: left; color: #666666'>

    How to remove style='text-align: left; color: #666666'> ?

Viewing 4 replies - 1 through 4 (of 4 total)
  • line 140 in assets/js/builder.js
    and replace:

    $scope.fieldHTMLTemplate.customText = "<div class='customText-cover field-cover'><div class=<span>{{element.elementDefaults.html}}</span> style='text-align: {{element.elementDefaults.alignment}}; color: {{element.elementDefaults.font_color}}'></div></div>";
    

    with:
    $scope.fieldHTMLTemplate.customText = "<div class='customText-cover field-cover'><div style='text-align: {{element.elementDefaults.alignment}}; color: {{element.elementDefaults.font_color}}'><span>{{element.elementDefaults.html}}</span></div></div>";

    I tried this, and it doesn’t work.

    I do now find that the line is 420.
    But the orginal find and replace is the same as in my post.

    Did you do a hard refresh of the admin page? (<your webstite>wp-admin/admin.php?page=formcraft_basic_dashboard&id=1 )

    Chrome, Firefox, or Edge for Windows: Press Ctrl+F5 (If that doesn’t work, try Shift+F5 or Ctrl+Shift+R).
    Chrome or Firefox for Mac: Press Shift+Command+R.
    Safari for Mac: There is no simple keyboard shortcut to force a hard refresh. Instead, press Command+Option+E to empty the cache, then hold down Shift and click Reload in the toolbar.
    Safari for iPhone and iPad: There is no shortcut to force a cache refresh. You’ll have to dig into settings to erase your browser’s cache.

    Oh, it’s working. thank you very much ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘custom text field issue with html’ is closed to new replies.