if field empty a   is inserted into page

Kristopher Maier asked on March 13, 2014 11:00

Is there a way that if a user does not enter a value that it does not display " "? It is creating awkward spacing issues.

Thanks,

Kris

Recent Answers


Kristopher Maier answered on March 13, 2014 11:11

 

0 votesVote for this answer Mark as a Correct answer

Brenden Kehren answered on March 13, 2014 14:08

Where are you doing this or having this awkward spacing issue? Form? Transformation? Static HTML?

0 votesVote for this answer Mark as a Correct answer

Kristopher Maier answered on March 13, 2014 14:50

Setting up a content field for a document type then using a Transformation like the following <%# Eval("ebookwebinarContent") %> to pull in the content through a web part.

0 votesVote for this answer Mark as a Correct answer

Brenden Kehren answered on March 15, 2014 11:22

Does the column have a default value? I've never come across that issue in 5+ years working with Kentico. What does the transformation code look like? It might be an issue with the type of field and/or content added or not added or invalid HTML

0 votesVote for this answer Mark as a Correct answer

Kristopher Maier answered on March 17, 2014 08:14

this is all i am using for the Transformation

<%# Eval("ebookwebinarContent") %>

Using Chrome as a browser, every time I check out a page it inserts these into fields that are empty. I have to manually go into each empty field and delete the  .

0 votesVote for this answer Mark as a Correct answer

Brenden Kehren answered on March 18, 2014 06:38

Are you viewing the source or looking through developer tools (F12). You should be using the source vs. dev tools to check actual output.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.