Rich Text in a XML Dynamic Form

Hi guys,
I'm having a problem accessing the property "richValue" of a text field.
What I'm trying to do is get comments entered in a text field to be added to a list of comments(rich, text Field), similar to chat window. So each comment added (via a button click) will be formatted differently depending on other form parameters.
Using LiveCycle Designer ES to create dynamic pdf form, target version 8.1 or higher. Testing using Acrobat Professional 8.1.2 .
All text fields have richText switch on and also the Binding data format has been set to "XHMTL", only because Designer was whinging about it.
Have tested:
]var field = event.target.getField("form1[0].#subform[0].txtAddComment[0]");
console.println("Comment: " + util.spansToXML(field.richValue));
]undefined "is the result".
Also tested:
]var field = event.target.getField("form1[0].#subform[0].txtAddComment[0]");
var comments = event.target.getField("form1[0].#subform[0].txtComments[0]");
]comments.richValue = field.richValue;
]"nothing happens, no error, fields don't change nothing"
OK is rich text supported in xfa dynamic forms?
My aim is to be able to take someone's comments, format them and add them to a list of comments (like a log of comments), via javascript.
Can anyone assist? It will be much appreciated.

send me your form,will try and fix it for you
[email protected]

Similar Messages

  • Rich text fields, field locking, and form saving/re-opening

    I have a LiveCycle form that has 2 text fields (email and info) and a button. When the button is pressed, the 2 text fields are set readonly and the button is set hidden. A rich text field is populated to provide a mailto link using the email and info text fields:
    form1.firstpage.HyperlinkSF.rtField.value.exData.loadXML(sRichText, false, true);
    This appears to work fine, but when I save the form and re-open it, the readonly fields are now editable and the button has re-appeared. If I remove the functionality associated with the rich text hyperlink, the form correctly re-opens with the readonly fields set readonly and the button is not visible.
    Any idea why populating a rich text field is affecting the form state on saving/re-opening?

    Thank you Bruce for your very helpful links.
    I see that I had incorrectly formed the rich text body tag. I had omitted:
    xmlns="http://www.w3.org/1999/xhtml" xmlns:xfa="http://www.xfa.org/schema/xfa-data/1.0/"
    I had also been unable to get the &body= of the mailto working, and see that I should have had & as in:
    var sURL = "mailto:" + sTo + "?subject=" + sSubject + "\&body=" + sBody;
    All appears to work as expected. Great links. Thanks!
    Robin

  • Rich text box used in Infopath Form not displaying option to get images from Computer

    Hello,
    We have used "Rich text box" in Infopath Form which is not displaying option to get images from Computer.
    Options available are : From Address, From SharePoint
    But if we Rich text box in list, then it works fine with "From Computer" option.
    can you please help me out to get this option.
    Thanks in advance.
    REgards,
    Jayashri

    Hi,
    From your description, there is no “From Computer” option to get images with rich text box in InfoPath form.
    Per my knowledge, by design there are “From Address” and “From SharePoint” options without “From Computer” option in rich text box in InfoPath form. As a workaround, you can develop a custom InfoPath Rich Text box to do it.
    About developing a custom InfoPath control, I suggest you create a new thread on the forum “Visual Studio Tools for Office”, more experts will assist you with InfoPath development.
    Visual Studio Tools for Office:
    https://social.msdn.microsoft.com/Forums/office/en-US/home?forum=vsto&filter=alltypes&sort=lastpostdesc
    Thanks,
    Dean Wang

  • InfoPath form, rich text fields, "There was a form postback error" InvalidOperationException, There has been an error while processing the form

    Using InfoPath 2013 browser enabled form.
    I am getting the above error on ALL Infopath Designed Rich Text fields, where the "Cannot be blank" attribute is set.
    To reproduce it, I create a custom list and custom list form with InfoPath 2013. I add 2 Rich Text fields and enable "cannot be blank". To raise the error, I put some data in the RT field. Skip to another field (so focus is changed and a postback
    occurs), then back to original field to delete the contents (to raise the validation).
    I originally thought it was associated with the HTMLCHKR.DLL not being registered (and I have re-registered it just in case), but the exception I get from the ULS logs reads (it is from a list AFTER I have re-registered the DLL):
    There was a form postback error. (User: 0#.w|myDomain\jc, Form Name: Template, IP: , Request: h t t p ://MyWebApp/MySite/Lists/rtAfterHtmlCHkrReg/Item/newifs.aspx?List=2212ff41-77b4-445b-931b-d7e538c9da91&Source=h t t p://MyWebApp/MySite/Lists/rtAfterHtmlCHkrReg/AllItems.aspx&RootFolder=&Web=3db49106-bdca-47bb-b4cd-a549d2d86aa7,
    Form ID: urn:schemas-microsoft-com:office:infopath:list:-AutoGen-2015-01-16T21:51:48:853Z, Type: InvalidOperationException, Exception Message: No content generated as the result of the operation.) 8cc5e09c-3665-903b-575a-faaac506c40a
    I noticed that errors associated with the HTMLCHKR.DLL not being registered would have some sort of COM exception (example: TYPE_E_LIBNOTREGISTERED or REGDB_E_CLASSNOTREG)
    I also should mention that this problem started happening about 3 weeks ago. We have extended the web application to handle HTTPS on the intranet zone (we had a reverse proxy project that did not eventuate) - would that cause something? How can I do further
    checking?

    Hi,
    I have done a test in my SharePoint, and I met the same issue with you.
    I created a custom list and custom list form with InfoPath 2013. I added 2 Rich Text fields and enabled "cannot be blank".  I put some content in the RT field, then delete the contents, I got the error message:"there has been an
    error while processing the form."
    Here is a similar post said that executing the command: regsvr32 "C:\Program Files\Common Files\Microsoft Shared\
    OFFICE14\htmlchkr.dll" will solve the issue.
    https://social.msdn.microsoft.com/Forums/en-US/eb2e0f6e-c8e4-4e92-ac5e-a09d72759eda/rich-text-field-error-in-webform?forum=sharepointcustomizationprevious
    But I just disabled "cannot be blank", and it solved the issue.
    Best Regards,
    Lisa Chen
    Lisa Chen
    TechNet Community Support

  • Pass rich text string from webdynpro java into interactive form

    Hi, experts:
      I know rich text-related questions have been asked by many other forum member.
      But I still cannot figure out how to display rich text string in the interactive form.
      below code is set rich text string in my webdynpro program.
    wdContext.currentDataForPDFElement().setDescription("<html xmlns:xfa=\"http://www.xfa.org/schema/xfa-data/1.0/\" xfa:contentType=\"text/html\"><body><p>20100730 0950</p><h1><strong>test1</strong><br /></h1></body></html>");
    or
    wdContext.currentDataForPDFElement().setDescription("<p>20100730 0950</p><h1><strong>test1</strong><br /></h1>");
    Text field in the interactive form has been assign "Field Format" to "Rich Text", "Data Format" to "XHTML".
    I also check XML in the "XML source" tab of interactive form.
    <field name="Description" w="152.817mm" minH="25.2984mm" colSpan="3" access="readOnly">
      <ui>
      </ui>
      <font typeface="Myriad Pro"/>
      <bind match="dataRef" ref="$record.Description"/>
      <value>
         <exData contentType="text/html">
            <body xmlns="http://www.w3.org/1999/xhtml" xmlns:xfa="http://www.xfa.org/schema/xfa-data/1.0/" xfa:APIVersion="2.4.5277.0"/>
         </exData>
      </value>
    </field>
    My development tool version is NWDS CE EHP1 SP4, LiveDesigner v 7.1.
    What I miss? Any hints would be very appreciated.

    What about these:
    Formatting in SO10 texts into the form
    Trouble with xhtml text in adobe forms
    Prevent HTML escaping in RichText fields
    regards Otto

  • Custom Text disappears on exit when using Dynamic Forms

    If you have a dropdown list and you tick the box to "Allow Custom Text Entry" in a Dynamic form format, it will not hold the custom value when you leave that field.
    If you save the Dynamic form as a Static Form the custom entries work fine.
    I need help ASAP with this as it is very annoying.
    Thanks in Advance

    I need help with this. I followed these instructions to the T as far as I am aware but I cannot get it to work. I get the error message:
    "Script failed (language is formcalc; context is
    xfa[0].form[0].form1[0].#subform[0].DropDownList1[0])
    script=addEnteredValue(sDropdown_XFA, svalue)
    var oDD = xfa.resolveNode(sDropdown_XFA);
    if ((null == sValue) || ("" == sValue))
    return;
    var sLBValue = "";
    var bFoundValue = false;
    for (var i = 0; i < xfa.resolveNode(sDropdown_XFA + ".#items").nodes.length; i++)
    sLBValue = xfa.resolveNode(sDropdown_XFA + ".#items.#text[" + i + "]").value;
    if (sValue == sLBValue)
    bFoundValue = true;
    if (!bFoundValue)
    oDD.addItem(sValue);
    oDD.rawValue = sValue;
    addEnteredValue("form1.#subform[0].DropDownList1", gDropDownTemp.value);
    gDropDownTemp.value = "";
    Error: function 'addEnteredValue' on line1, column 38 is unknown. "
    Obviously I'm doing something wrong. How do you make it recognize the addEnteredValue function? -- When I added "gDropDownTemp;" to the File-->Form Properties-->Variables tab it said that it MUST have a value so I put 0, it wouldn't allow me to not enter a value even though instructions say otherwise. I'm new to this and I know what I want but getting to that point is another story it seems. Any help would be greatly appreciated.

  • When reading the Rich Text present in Excel column using open XML its taking it as plain text

    Hello All,
    When i am reading excel columns using open Xml in C# everything is working fine except the column that
    contain Rich Text (ex: bold, italic,color,size). Its reading the Rich Text content as plain text. As we know for Rich Text in open XML we get the text as Runs (C#
    object) which contains the text as value and rpr as run properties. I have also written the code to convert Runs to html. But the issue is that for some Rich Text format its reading it as Runs but most of the Rich Text its reading it as plain text.
    The issue i am getting is, for some rich text its creating RUN and for some of the rich text its not creatingRUN.
    Let me give the example for more understanding:
    Suppose i have two cells in excel which contains the below text.
    1. Rich Text
    1
    2. RichText
    2
    Now when i read these cells using the below code
    var stringTable =spreadsheetDocument.WorkbookPart.GetPartsOfType<SharedStringTablePart>().FirstOrDefault();
    if (stringTable.SharedStringTable.ElementAt(index1).ChildElements.GetItem(0).GetType().Name == "Run")
    Custom code to convert Rich text to HTML...
    else
    Read the plain text...
    Though both the cell contains rich text, one is going in RUN block and one is going in Plain text bloc.
    Also, one thing that i have noticed is when i use standard color for text its consider it as RUNS and when i use color apart from the standard color it does not consider it as RUNS. Same behavior occurs for different combination of text viz. bold, italic, underline
    etc

    Hi Ejaz,
    This forum is for software developers who are using the Open Specification documentation to assist them in developing systems, services, and applications that are interoperable with Microsoft products. The Open Specifications can be found at:
    http://msdn.microsoft.com/en-us/library/cc203350(PROT.10).aspx. Since your post does not appear to be related to the Open Specification documentation set, we would appreciate it if
    you could try to post your question in a more relevant forum. Thank you.
    Open XML Format SDK
    https://social.msdn.microsoft.com/Forums/en-US/home?forum=oxmlsdk&filter=alltypes&sort=lastpostdesc
    Josh Curry (jcurry) | Escalation Engineer | Open Specifications Support Team

  • Remove scroll bars in dynamic form

    Hi all,
    I'm starting to kick myself every time I put a post here.  Apologies and thank you for everyone's help - slowly but shortly I'll be one of the people answering the questions.
    Really easy one (I think).  A have a dynamic form, which updates a dynamic list.  Is there a way to alter a text area in the dynamic form, so that it is a fixed area  i.e. when you get to the end of the line/characater usage, the cursor goes down to the next line rather than creating a horizontal scroll bar and running forever into the distance.  I have played around with Wrap options without luck, the css doesn;t seem to play much of a part as this is an actual text area in Dreamweaver as opposed to a CSS clipping in the list.
    Thanks again,
    Nathan

    NJFuller wrote:
    Perfect! Thank you Albert.  Is it possible to add virtual wrap to a box in a dynamic list?  As that is not presented in a normal html form'ish style way.....?
    Hi Nathan,
    as a Dynamic List displays pure text only, you´ll need to help yourself by formatting the displayed column using PHP. There are several ways to add "virtual" line breaks, and the most straightforward (though certainly not the most elegant) solution would be to apply the PHP function wordwrap which wraps a string to a given number of characters.
    The following example will wrap the text after 40 chars, and the "wordwrap" function will - as always - have to replace ADDT´s default "KT_FormatForList" function:
    <?php echo wordwrap($row_rsqueryname1['columnname'], 40, "<br />\n"); ?>
    Cheers,
    Günter

  • Formatting text within a distributable pdf form

    Hi all,
    I am using LiveCycle Designer 8.0 to create a pdf form for people to fill out. I want them to be able to use rich text for their responses so that, for example, they can italicize or underline the text that they're entering within the text fields.
    Within LiveCycle, I've made the fields rich text (instead of plain text), and, in fact, you can use rich text when filling out the form with Acrobat.  The problem is that, after the form is submitted with Acrobat, the text reverts back to plain text and all formatting is lost (so, for example, someone can fill out the form using bold, underline, italics, different fonts and typefaces, etc., but once (s)he submits the form and it is sent to me, i only see what they filled out in plain text).
    Does anyone think they can help?  I've checked the forums for similiar posts, like this one, but haven't come across solutions for my situation.
    Thanks in advance

    The form is set to submit the entire pdf file (that is, the pdf, with the fields completed, is sent to my inbox in an email message, and, upon opening the pdf, i have the option of adding the data/completed fields to a dataset).  Unfortunately, the pdf seems to lose any formatting once it's submitted.
    You're right--perhaps i should also ask in the LiveCylce Designer forum.
    Thanks

  • How to import xfa(XML Forms Architecture) to indesign without losing rich text format.

    Hello All,
    i created pdf form in livecycle.i am populating this pdf form and submit.when i am submiting form ,i will get the data in xfa(xml forms architecture).now i want to import this xml to indesign.when i importing this xml to indesign,it imported without rich text format.this means in indesign formate is not preserved when importing xfa(xml forms architecture).
    how to import xfa(XML Forms Architecture) to indesign without losing rich text format.
    please help me,its urgent.
    thanks
    Humayoo

    I really have no idea what kind of file that is and how is the structure, but if it´s valid XML, I guess you could use InDesigns Tags to Styles mapping engine to format incoming stuff....

  • Using Rich Text in interactive form

    Hi,
    I am trying to enter rich text in a form and submitting it to a web dynpro application.
    To achieve this I created a context attribute (type string) and mapped it through an interface with the form. In the form I created a text field (type XHTML). I unchecked the 'allow plain text only' option and unchecked the 'Allow multiple lines' option although multiple lines would be nice as my goal is to store a large block of rich formatted text.
    When I press the submit button the form field is not synchronized with the wd application. Another (plain text) field works fine so I assume I have setup the interactive form ok. Please let me know what it is that I am doing wrong here. Or if it is not possible, let me know also.
    Thanks,
    Raymond
    Message was edited by:
            Raymond Does

    Hi,
    No, not yet (I did not have time for it...). The next thing I will try is to modify my interface. At the moment I use a XML schedule based interface and I would like to try an ABAP based interface. Don't know if that will help but it is worth a try.

  • Re-display repeating XML data in dynamic form

    I have a dynamic form with repeating data in my XML that populates it. I need to display the repeating data in one of 2 different ways, depending on which business segment the user viewing it is associated with. I have tried 2 ways to accomplish this, neither has worked for me.
    Attempt 1: Create 2 separate subforms and hide the one that should not be shown. The first subform in the layout displays just fine and is populated with records, but the second subform never displays any records. This appears to be an issue with the XML node already having been parsed and displayed and does not get displayed again. Is there a way to move the cursor, or pointer, or whatever you call it in XML-speak back to the top of a repeating node to re-display data?
    Attempt 2: Create a single subform that contains 2 other subforms - one for each view, which lay atop each other. A script command hides the view the shouldn't be displayed. The problem I ran into here is that the records don't display properly. In my example, there are 3 records in the repeating section, the first displays fine, the second is missing some fields and is pulling some data from the first record. The third record displays no data at all. I deleted the one of the 2 subforms and previewed the form again, now all of the records displayed just as they should.
    Any ideas or suggestions would be appreciated.
    Thanks,
    Chad

    That code also produces text in the textfield.  What "specific parts" are you trying to display?
    textfield.text = (xml.bar[0].text());
    textfield.text = (xml.bar[1].text());

  • Forms calling a rich text format (.rtf) file

    Good day!
    Suppose I made up a report from oracle forms then used the options 'generate to file' > XML.
    Uses Microsoft Word 2010 with an add-ins 'Oracle BI Publisher' and make designs in my report then save it to .rtf (Rich Text Format).
    My question is how can I call my reports and display it using oracle forms?

    RTF files must be feeded by XML.
    Your answer is not just that simple. Besides, I've search for it already.
    Maybe my question to you is, is that possible?

  • Create a dynamic form where selected text boxes appears, based on options chosen in a drop-down box

    HELP!!! Can anyone please provide some guidance on how to create a dynamic form where selected text boxes appears, based on options chosen in a drop-down box.
    I have a form which – based on the department that's selected from a drop-down box – will have different form fields/text boxes, etc, made available.
    Is this possible in LiveCycle, if so, can you please provide the script/info - as needed.
    Thanks,

    In the preOpen event of the second dropdown list you put something like (in formCalc):
    if (dropdown1 == 1) then
    $.clearItems()
    $.setItems("Year, 2 Year,  3 Year")
    elseif (dropdown1 == 2) then
    $.clearItems()
    $.setItems("3 Year,  4 Year")
    endif

  • Changing text size in form field (rich text formatting enabled)

    Hi all,
    I'm hoping someone can help me out here. I've created an interactive PDF with form fields with "Rich Text Formatting" enabled.
    My client has filled in the fields and would like to make the text bigger. When right-click, there are only options to change the text style (bold, italics etc) but nothing to change the text size. I'm not keen on disabling and then re-enabling the "Rich Text Formatting" options as the text have been formatted (bold, italics, superscript, subscript etc) and approved, and this will remove all the existing formatting.
    Can anyone help?
    Acrobat 9.4.6
    Mac 10.6.8
    Cheers,
    Tricia

    Thanks so much!! Really appreciated!
    Strangely enough, I found the Form Field Text Properties dialogue box by randomly choosing "Hyperlink" in the right-click options. Who would have thought!

Maybe you are looking for

  • [GAVE UP] New Wifi card problem - no orange "Wifi on" light

    For some silly reason the Intel Wifi 4965 agn mini-PCI card in my wife's laptop will not work with anything newer than Ubuntu 8.04 Hardy Heron. Linux will not even "post". (I think that's the right word) So, I ordered an Intel Wifi 5100 agn mini-PCI

  • [VIA] Do I need a video card to make this MB run?

    My MSI KM4M-V arrived today. It replaced a Shuttle motherboard I just could not make it show anything on the monitor.     I returned it as defective.  Well, I just installed my MSI and darn it, the same thing is happening.  Nothing shows on the monit

  • Unable to view Applets due to class not found error. Urgent

    We are currently facing issues in our upgrade to Java JRE 1.6 & above from JRE 1.4 on displaying certain information. Our applets are built in a way like at runtime it will access certain jar files ( tibco jar files) and use them to parse the incomin

  • Assessement Allocation

    Dear Experts,      I client have requirement in Assessment Cycle: If we have 2 sender cost Centers and 5 receiver Cost Centers. 1st sender cost Center is Rs.2000 and 2nd sender cost Center is Rs.3000. Now the allocation should be: 1st sender cost Cen

  • Compensating for tabs and leader dots when converting to HTML

    A FrameMaker document contains a series of "tables" which are actually very long lists. They have the appearance of a TOC: a text phrase, a long line of leader dots, a tab, and a numeral at the end of the dots. Since the tabs and leader dots vanish w