I have a note field that returns the contact information for a person. Is there a way to use HTML formatting on this response? I'd like to have it centered with the label.
I believe Mike has something close to the right answer, though his function looks to have a small typo- a comma is needed to separate the first html text and the variable:
concat('<b><H1><center>Welcome to the Eagle Ford South Meet & Greet!</b></H1></center><b><center><H2>Your Landman is :',${old_note},'</b></center></H2>')
I also would suggest using a calculate or hidden field to get the initial pulldata function response, so that it's not visible on the form. See the attached version (use a 31201 as a sample value)
Nicholas,
I wonder if it has to do with the fact that you are not referencing the answer within the line of HTML code? I wonder if you tried to create a new "note" field that had a concat() function that would use the answer returned from the pulldata().
So, you would have a new note field that uses the answer to the pulldata() note. For sake of conversation, we'll call your original note "orig_note" and we will call the new note "new_note"
You would add in the "new_note" field that you can pass the returned value into and concatenate the value with the HTML string.
Something like this -
concat('<b><H1><center>Welcome to the Eagle Ford South Meet & Greet!</b></H1></center><b><center><H2>Your Landman is :'${old_note},'</b></center></H2>')
Hi Mike, thanks for the suggestion. I tried formatting the HTML as you suggested, unfortunately it's still sending my pulldata() request to the left.
Updated HTML to:
<b><H1><center>Welcome to the Eagle Ford South Meet & Greet!</b></H1></center><b><center><H2>Your Landman is :</b></center></H2>
It seems like you should just be able to add the "center" tag into the Header2 and that should take care of the centering when looking at your coding?
You have <H1><center> text blurb</H1><H2> text blurb</H2> and it seems like it should be <H1><center> text blurb</H1><H2><center>text blurb</H2>
This is just a guess and nice setup with the image in the background.
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.