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

Similar Messages

  • 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

  • MS SharePoint 2010 Designer Workflow Email - Enhanced Rich Text Field look-up values on HTML email have large spaces

    MS InfoPath 2010 form with RTF (Rich Text Fields)
    MS SharePoint 2010 Custom Library
    MS SharePoint 2010 Designer Workflow Send Email
    http://office.microsoft.com/en-us/sharepoint-designer-help/send-e-mail-in-a-workflow-HA010239042.aspx
    https://www.nothingbutsharepoint.com/sites/eusp/pages/creating-html-emails-with-spd-workflows.aspx
    Hi all of the above work, our question is how to control the RTF (Rich Text Field) look up values to the InfoPath 2010 form in the HTML email?
    How to FORMAT the RTF look up value? in the HTML email
    EXAMPLE
    we have a InfoPath 2010 form published in the SharePoint 2010 custom list library there are 5 RTF fields (Notes1, Notes2, Notes3, Notes4, Notes5) there are other plain text fields, date fields, and other field types in the form
    We use a HTML table to make the email look like the InfoPath form, so when the users fill out the form and they get the email notification everything looks the same.
    Our problem is the EXTRA LINE SPACE in the RTF look up values
    We want to remove any leading spaces, and line spaces between HTML table cells
    Our Workflow has the HTML in a Workflow variable, as you know it does not support remote CSS it has to be in-line style for any formatting we want all cells to have
    valign="top" the email should align at the top of the cell, all field types do except the RTF look up values they make the email look bad and they contain a lot of white space.
    Please test this in your enviroment 
    <table>
    <tr><td>Title:</td><td>[%Current Item:Title%]</td><td>[%Current Item:Notes1%]</td></tr>
    <tr><td>Created by:</td><td>[%Current Item:CreatedBy%]</td><td>[%Current Item:Notes2%]</td></tr>
    <tr><td>Date Created:</td><td>[%Current Item:Created%]</td><td>[%Current Item:Notes3%]</td></tr>
    <tr><td>Modified by:</td><td>[%Current Item:ModifiedBy%]</td><td>[%Current Item:Notes4%]</td></tr>
    <tr><td>Date Modified:</td><td>[%Current Item:Modified%]</td><td>[%Current Item:Notes5%]</td></tr>
    </table>
    I could not update the question below to the proper forum section. that is why i am asking again.
    http://social.technet.microsoft.com/Forums/en-US/a7918bfb-9166-4bdb-828c-132a0c7611e3/ms-sharepoint-2010-designer-workflow-emails-huge-lines-paces-in-rich-text-fields-values-from-ms?forum=sharepointcustomization
    -Isaack

    Hi IssackB,
    perhaps you may try this article:
    http://social.msdn.microsoft.com/Forums/sharepoint/en-US/f8fa2a11-9f74-4dd2-b277-21ce872fdcb2/can-we-add-rich-text-editor-to-the-sharepoint-designer-2010-workflow?forum=sharepointcustomizationprevious
    there are some notes that perhaps you may check:
    Use the same font for all the controls to ensure consistent spacing between rows.
    Choose Size from the Format menu, and then choose To Fit from the menu that appears. This adjusts the size of each control, depending on the font set for the data that appears
    in the control.
    NOTE: The Print Preview and Output To commands use different algorithms for calculating text width; therefore, the text may occupy more or less
    space in the RTF file.
    Reduce the amount of blank space above and below the report controls. Any vertical
    space between the controls is converted to whole lines
    in the RTF file. For example, a
    space of .02 inches can increase to .1667 inches in the
    RTF file.
    Make sure controls on the same output row are not too close to each other or overlapping. This can cause the Output To command to omit the controls or to align the columns incorrectly
    in the RTF file.
    Use the Align command from the Format menu to ensure that a row of controls is aligned properly on the report. If a row of controls is not aligned properly, the Output To command may place the controls
    in different rows, causing extra blank
    spacein the RTF file. 
    and please have a check there are updates for exchange 2013 and will be available with the upcoming release of CU4 for Exchange 2013, that stated the format rtf was saved instead HTML. http://support.microsoft.com/kb/2862739/en-us
    Regards,
    Aries
    Microsoft Online Community Support
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

  • How can we add Text field on system form which is updateable?

    Hi Experts
    I Want to create text field on System Form like A/R Invoice, in which I can store value after saving the document. I means Updateable field. Is it possible and How?
    Thanks
    Regards
    Gorge

    Hi Gorge,
    Please follow Jeyakanthan instructions. You may know how to create a UDF but you clealy don't understant how they work.
    A UDF in the System document's Title table is always updatable, unless you define it otherwise or do not have permission to update it (Open the form where you created the UDFs and press CTRL + ALT + B to open the definitions form).
    A UDF in the System document's Rows table is always updatable ONLY if that document's rows are updatable AND if you set them as updatable (via Form Settings) and have permission.
    On a User Form, you make your own rules!
    Regards,
    Vítor Vieira

  • Making some words Bold/Underlined of an editable text field in Adobe Form?

    I have a a requirement of making some words Bold/Underlined of an editable text field in Adobe Form. I have created a "Text Field" and in "Value" tab as default value I have written the textline and made the field Type as "User entered - optional" so that at runtime user can edit that text. Now they want some words of the whole text line should display as Bold and some as Underlined. Can you please help me to meet this requirement.
    Moderator message: please have a look in the dedicated forum for "Adobe Interactive Forms".
    Edited by: Thomas Zloch on Feb 15, 2011 5:47 PM

    Just an idea, but you might try re-printing that original PDF file to the Adobe PDF printer (saving it as another pdf file, essentially). Then try again to add form fields. (You can copy the form fields you've already created and paste them onto the new file -- just copy and paste while in forms edit mode). A second shot in the dark if the first doesn't work might be to try again, but change the print settings when printing to PDF. I've ready some reports that the dpi setting can have an effect. Maybe go from 600 to 150 and see if that works. Let me know which, if either, of these ideas works.
    -Joe

  • Rich text field will not show proper font attributes! (Bug? - RTF OTF font handling)

    I created two text form fields (rich text)...
    In Windows 7, Write program (using it to format the rich text content)... I edited my two lines.
    Line one: mix of two font sizes and a few attribute changes... pasted into the first text field perfectly.
    Line two: similar to the above... pasted into the second text field but the font is appearing in bold! It is not bold in the source, nor is it preset in the text field properties! I even pasted it back into Write AND Word and it pastes as I intended it.
    Why is Adobe doing this? I even tried to toggle >Text Style > bold on/off, clear formatting... these functions do not work!
    If I bring up the properties toolbar (Ctrl-E), bold is toggled on but I cannot toggle it off, I can add underline, I can change the font size.
    UPDATE: It seems that Adobe Acrobat is NOT reading the OTF font correctly! If I change to a different font, in the same family, the problem changes from set on bold to set on italics!
    It is specifically related to the font I am using but is ONLY a problem when using Rich Text fields. In other words, the entire font family works perfectly if I inserted a text box or use the font family in any other Adobe product.
    I have submitted a bug report: https://www.adobe.com/cfusion/mmform/index.cfm?name=wishform&loc=en

    Another possibly revealing clue is that when I go to Text Field Properties > Appearance tab > Text / Font, I see the entire family of this particular font. However, when editing the text in the properties toolbar (Ctrl-E), only a small sub-set of this font family appears and the attributes behave in an odd manner. Example: normal font appears as italics but if I switch on BOLD, the italic attribute is gone... and other strange attribute problems.

  • Rich Text Field in HTML

    I need to design an xdp form that can be rendered in HTML and which allows the user to format text field content. I created a text field control with data format of xhtml. In Adobe Acrobat Professional I can use CNTRL-E to open the "Form Field Text Properties" toolbar. Will this work in the web browser when the form is rendered as HTML?
    Also, is it possible to insert a hyperlink into a rich text field when rendered as HTML or PDF? Are hyperlinks even supported in text fields of forms designed using LiveCycle?

    hi
    another way to do it is to specify RenderFormat property of Content by search web part (it is not available from UI, only programmatically or declaratively):
    <property name="RenderFormat" type="string">&lt;Format Type=&quot;HTML&quot; /&gt;</property>
    Format is very important and it should be exactly like shown above. Check the following post for details:
    Problem with trimmed html content in search index in Sharepoint 2013.
    Blog - http://sadomovalex.blogspot.com
    Dynamic CAML queries via C# - http://camlex.codeplex.com

  • How does APEX check for null values in Text Fields on the forms?

    Hello all,
    How does APEX check for null values in Text Fields on the forms? This might sound trivial but I have a problem with a PL/SQL Validation that I have written.
    I have one select list (P108_CLUSTER_ID) and one Text field (P108_PRIVATE_IP). I made P108_CLUSTER_ID to return null value when nothing is selected and assumed P108_PRIVATE_IP to return null value too when nothign is entered in the text field.
    All that I need is to validate if P108_PRIVATE_IP is entered when a P108_CLUSTER_ID is selected. i.e it is mandatory to enter Private IP when a cluster is seelcted and following is my Pl/SQL code
    Declare
    v_valid boolean;
    Begin
    IF :P108_CLUSTER_ID is NULL and :P108_PRIVATE_IP is NULL THEN
    v_valid := TRUE;
    ELSIF :P108_CLUSTER_ID is NOT NULL and :P108_PRIVATE_IP is NOT NULL THEN
    v_valid := TRUE;
    ELSIF :P108_CLUSTER_ID is NOT NULL and :P108_PRIVATE_IP is NULL THEN
    v_valid := FALSE;
    ELSIF :P108_CLUSTER_ID is NULL and :P108_PRIVATE_IP is NOT NULL THEN
    v_valid := FALSE;
    END IF;
    return v_valid;
    END;
    My problem is it is returning FALSE for all the cases.It works fine in SQL Command though..When I tried to Debug and use Firebug, I found that Text fields are not stored a null by default but as empty strings "" . Now I tried modifying my PL/SQL to check Private_IP against an empty string. But doesn't help. Can someone please tell me how I need to proceed.
    Thanks

    See SQL report for LIKE SEARCH I have just explained how Select list return value works..
    Cheers,
    Hari

  • How to copy text from Excel to a text field in the form?

    Hi All,
    I want to copy a text from Excel or Word file and paste it in a text field in the form, How?
    I tried to use ctrl+c for copy and ctrl+v for paste but it doesn't work!

    hi, i've seen this problem before but can't remember what the solution was...
    but just by searching on this forum resulted in this link
    Re: Copy and Paste
    hope it helps

  • Is it mandatory to bind each & every CONTEXT element to a text field on the form?

    Hello,
    I am developing an Adobe Interactive Form, i have Designer 8.1 and Reader 9.0 in my Windows 7 Laptop. When i checked the menu EDIT-->form properties --> Compatability, its Adobe XML form File (XDP)
    I have 3 elements (say, 1_Name, 2_Street and 3_City) in the CONTEXT and drawn ONLY 2 input enabled TEXT fields (for items - Name and Street of conetext) and then, BINDED them.
    I did not put any associate text field for CITY and no chance of binding!
    Pls. let me know that, Now can i utilize this CITY (of context) element containign data in the Java script? is this CITY is VISIBLE in the java script, even though it did not get BINDED with any text field on the form?
    THank you

    Thank you.
    If it got BINDED, i knew how to point/get/visible the CITY element (of CONTEXT) containming data by using the below java script,
    (this.rawValue == "A") or i can also get it with script of VISITOR.Page3.Subform11.CITY.rawvalue = "A"
    If i do NOT bind CITY to any TEXT FIELD of FORM, then, how i can retrieve/get/visible/point CITY content?

  • Caml query to retrive keyword from rich text field

    hi friends
    i am using below caml query to retrieve data from title field and Rich text field(Definition) 
    <View>
    <Query>
    <Where>
    <And>
    <Or>
    <Eq>
    <FieldRef Name=\'Title\'/>
    <Value Type=\'Text\'>'+letter+'</Value>
    </Eq>
    <Contains>
    <FieldRef Name=\'Definition\' />
    <Value Type=\'Note\'>'+letter+'</Value>
    </Contains>
    </Or>
    <Neq>
    <FieldRef Name=\'status\' />
    <Value Type=\'Text\'>Not approved</Value>
    </Neq>
    </And>
    </Where>
    <OrderBy><FieldRef Name=\'Title\' /></OrderBy>
    </Query>
    </View>
    this query is working fine. But it is retrieving some extra fields also which doesn't have the queried string. and even it is retrieving keyword from image urls which are present in rich text field. 
    Please help me to retrieve key word from plain text of rich text field.

    Hi,
    According to your post, my understanding is that you want to use caml query to retrive keyword from rich text field
    By design, when specifying a ViewFields clause, values for these fields are returned, together with a few system columns like ID, Created and Modified.
    If you query rich text field, it will return the field with HTML tags.
    To retrieve key word from plain text of rich text field, you need to use regular expression to remove the HTML tags.
    You can use the code below:
    using (SPSite site = new SPSite("http://sitename"))
    using (SPWeb spWeb = site.OpenWeb())
    SPList spList = spWeb.Lists.TryGetList("ListName");
    SPQuery qry = new SPQuery();
    if (spList != null)
    qry.Query =
    @" <Where>
    <Contains>
    <FieldRef Name='Rich_x0020_Text' />
    <Value Type='Note'>caml</Value>
    </Contains>
    </Where>";
    qry.ViewFields = @"<FieldRef Name='Title' /><FieldRef Name='Rich_x0020_Text' />";
    SPListItemCollection listItems = spList.GetItems(qry);
    foreach (SPListItem item in listItems)
    string src = item["Rich_x0020_Text"].ToString();
    Regex htmlReg = new Regex(@"<[^>]+>", RegexOptions.Compiled | RegexOptions.IgnoreCase);
    src = htmlReg.Replace(src, string.Empty);
    Console.WriteLine(src);
    Console.ReadKey();
    The result is as below:
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • Annotation field locked and subsequent digital signatures

    Hi all,
    i'm testing my PAdES digital signature library in Obj-C and i encountered this kind of PDF file
    http://dl.dropbox.com/u/3995257/PDF/Locked.pdf
    Acrobat Reader tells that the document is locked by a signature (Signature2). As far as i know locked means that the file can't be modified but is is impossible to append a digital signature too?
    I tried to sign the document with my lib and as expected the second signature invalidates the first.
    http://dl.dropbox.com/u/3995257/PDF/Sign_Locked.pdf
    But... i tried to sign for the third time the previous file. I would expect that the first (locked) signature would be invalid but the second and the third would be not.
    http://dl.dropbox.com/u/3995257/PDF/Sign_Sign_Locked.pdf
    Despite my expectations, only the last signature is avalid according to Acrobat Reader.
    Does the first locked signatures invalidates the subsequents? Or more simply i can't sign a Document locked PDF?
    Thanks

    Yes, because the first is a lock – anything you do after the fact will invalidate.
    From: Adobe Forums <[email protected]<mailto:[email protected]>>
    Reply-To: "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>>
    Date: Wed, 28 Sep 2011 02:11:54 -0700
    To: Leonard Rosenthol <[email protected]<mailto:[email protected]>>
    Subject: Annotation field locked and subsequent digital signatures
    Annotation field locked and subsequent digital signatures
    created by Luigi Cuomo<http://forums.adobe.com/people/Luigi+Cuomo> in PDF Language and Specifications - View the full discussion<http://forums.adobe.com/message/3942243#3942243

  • 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]

  • Hi everybody.. i have a problem nad i need help a.s.a.p ... i forgut my ipad passcode and tryed to remember it tell it locked and i cant get open .. it says connect to itunes .. i did that and its still not opening? what can i do? thanks

    hi everybody.. i have a problem nad i need help a.s.a.p ... i forgut my ipad passcode and tryed to remember it tell it locked and i cant get open .. it says connect to itunes .. i did that and its still not opening? what can i do? thanks

    http://support.apple.com/kb/HT1808
    Regards.

  • I just upgraded iMac to 10.6.8 and now saved items open with "Color-Sync Utility". How can I change it back to preview?

    I just upgraded to 10.6.8 and my saved files open with "Color-Sync Utility". How can I change it back to Preview?

    Select a document in the Finder, choose Get Info from the File menu, click on Open With, select the desired application, and press the Change All button.
    (80944)

Maybe you are looking for

  • Missing or invalid version of SQL Library PSORA with 8.50

    Although unsupported, I am trying to get a HCM 9.1 on PT 8.50.05 running on a 64 bit Windows 7 Pro laptop. Running 11.1.0.7 Windows 2008 64 bit Oracle. I installed the 32 bit Oracle 11.1.0.7 client for Win2008 also. Every thing seems OK until I try t

  • RHEL 4 64bit OAS 10.1.2.2.0 and PHP5

    I am trying to support php5 with OAS 10.1.2.2.0 and am having a problem compiling php. Doing a normal compile of php results in a 64bit executable which does not work with Oracle apache as it is a 32 bit executable. I have tried compiling php using '

  • Is it possible to directly upgrade 15454 M12 TCC2 rel 9.10 to rel 9.221?

    I'm planning to upgrade our client's node an ONS 15454M12 from release 9.10 to release 9.221. Can i directly loadand upgrade it to release 9.221 or do I need to do step upgrade 9.10 to 9.211 then 9.221? Is it service affecting? ...many thanks.... che

  • Bought a 3 mth subscription card for Photoshop CS6 because my 30 day trial expired & won't work?

    So I bouth a 3 month subscription card for Adobe Photoshop CS6 because my 30 day trial expired.  I followed all the onscreen instructions and it accepted my activation code but when I go to open the Photoshop previously installed it says my 30 day tr

  • Problem with adding music to a slide show

    I am trying to add add'l music to a slide show in Elements 9.  The first songs added easily.  I am now getting a message that the "codec" is insufficient.  There does not seem to be any difference in the properties of the songs that are being rejecte