GenAddRecordForm API call with rich text

  • 0
  • 1
  • Question
  • Updated 3 months ago
  • In Progress
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
Photo of Alex Gale

Alex Gale

  • 1,124 Points 1k badge 2x thumb

Posted 3 months ago

  • 0
  • 1
Photo of Slider

Slider

  • 1,346 Points 1k badge 2x thumb
can you post your formula for troubleshooting? 
Photo of Alex Gale

Alex Gale

  • 1,124 Points 1k badge 2x thumb
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. 
Photo of Slider

Slider

  • 1,346 Points 1k badge 2x thumb
Try a URLEncode() around the description.
Let me know if that helps.
Photo of Alex Gale

Alex Gale

  • 1,124 Points 1k badge 2x thumb
That worked perfectly. Thanks a lot
Photo of Slider

Slider

  • 1,346 Points 1k badge 2x thumb
excellent!