Jump to content

Embed html or php in a Text Field


This topic is 4078 days old. Please don't post here. Open a new topic instead.

Recommended Posts

I couldn't find any way from anybody on how to type something into the text field that would be respected by a browser. But I did find a PHP function that does what I need.

 

So the original html/php code was: 

 

<dd><?php echo $record->getField("Field_Name"); ?></dd>

 

The revised code is:

 

<dd><?php echo nl2br($record->getField("Field_Name")); ?></dd>

 

which has the effect of rendering the breaks typed into the Filemaker text field in the browser.

Link to comment
Share on other sites

This topic is 4078 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.