Post

2 followers Follow
0
Avatar

Format text when submitting using podio api

I am submitting 3,4 lines of text like this

This is line 1

This is line 2

This is line 3

but when I submitting details, it is coming as

This is line 1This is line 2This is line 3

How can we do this

Ram Yadav

Please sign in to leave a comment.

8 comments

0
Avatar

If you are submitting text to a large text area you can use some HTML to create line breaks etc.

Andreas Haugstrup Pedersen 0 votes
0
Avatar

Hi, Could you please suggest some examples or where should I check to do the required thing. Any help would be deeply appreciated. Thanks

Ram Yadav 0 votes
0
Avatar

our data in $_POST['form_message']
PodioItem::create( $itemId, $attributes = array('fields'=>array("subject"=>$_POST["form_subject"],"department"=>$_POST["form_department"],"first-name"=>$_POST["form_firstname"],"last-name"=>$_POST["form_lastname"] ,"email-2"=>(int)$contactEmailId,"company"=>$_POST["form_companyname"] ,"tell-us-more"=>$_POST["form_message"] )));

Ram Yadav 0 votes
0
Avatar

You'll need to let me know the contents of those variables. Otherwise there's no information there

Andreas Haugstrup Pedersen 0 votes
0
Avatar

Dear Support,

I try to be as clear as i can. Let me know if i am missing any details here.

What i am asking is that when i am submitting text to the large text area via this variables:

"tell-us-more"=>$POST["formmessage"]

I am getting the output value in podio like the below:

This is line 1This is line 2This is line 3

By right via my website, i am entering the below value:

This is line 1
This is line 2
This is line 3

As you suggested earlier, if i am submitting text to a large text area, i can use HTML to create line breaks. But how do i apply this "HTML solution" you mentioned on the variables ("tell-us-more"=>$POST["formmessage"]) i had provided above? An example of how this can be applied on my existing variables will be appreciated.

Not sure if my reply is clear to you. But my end objective is that when i submit a content with paragraph, i would like to see it display with paragraph too on the podio large text area (which support paragraph).

Ram Yadav 0 votes