Discussions

Expand all | Collapse all

GenAddRecordForm API call with rich text

  • 1.  GenAddRecordForm API call with rich text

    Bronze
    Contributor
    Posted 09-06-2018 19:28
    I am attempting to use a GenAddRecordForm API call. I would like to pre-fill a rich text field on the add form, from a rich text field in the source table. However, the call appears not to work. Should this be happening? Is there a way around it? 

    Thanks


  • 2.  RE: GenAddRecordForm API call with rich text

    Posted 09-06-2018 20:52
    can you post your formula for troubleshooting? 


  • 3.  RE: GenAddRecordForm API call with rich text

    Bronze
    Contributor
    Posted 09-07-2018 14:10
    Sure: 

    URLRoot() & "db/" & "bjfvif6ea?a=API_GenAddRecordForm" & 
    "&_fid_6=" & [Task Name] & 
    "&_fid_7=" & ToText([Assigned To]) & 
    "&_fid_10=" & [Description] //[Description] and the target field are both rich text fields

    It really is a fairly typical GenAddRecordForm call, aside from the rich text fields. 


  • 4.  RE: GenAddRecordForm API call with rich text

    Posted 09-07-2018 14:12
    Try a URLEncode() around the description.
    Let me know if that helps.


  • 5.  RE: GenAddRecordForm API call with rich text

    Posted 09-07-2018 14:14
    excellent!


  • 6.  RE: GenAddRecordForm API call with rich text

    Bronze
    Contributor
    Posted 09-07-2018 14:14
    That worked perfectly. Thanks a lot