Populating a text area field with a NEW page script. - Forum - Rollbase - Progress Community

Populating a text area field with a NEW page script.

 Forum

Populating a text area field with a NEW page script.

This question has suggested answer(s)

On the Public Cloud, Release 4.5, I am trying to populate the start of  a Text area filed on a NEW page based on certain choices made on the page itself, so I cannot use a default value. When I use the rbf_setFieldContent, the field gets populated, but the field becomes non-editable. The rbf_setFieldValue does not seem to work.

Any suggestions on how I can populate a Text Area field so that the user can add more text as needed?

All Replies
  • rbf_setFieldContent API should only be used for view only fields like Formula & Template.

    rbf_setFieldValue should be used in this scenario.

    Request you to share a sample app highlighting the issue you are seeing with rbf_setFieldValue.

    Regards,
    Siraj.
  • <script>

     function jl_concreteNote()

    {

     var conc = document.theForm.create_reports_concrete_68043560.checked;

     if(conc == true)

            rbf_setFieldValue("note", "Bring J -Ring and Spread Board");

    }

    </script>

  • Will need the actual app.xml to troubleshoot further. Can you export a sample app.xml and share on this forum thread.

    Regards,
    Siraj.
  • Unfortunately, there are too many issues with the application to successfully generate an XML file.  I will go ahead and generate a CASE ticket identifying the specific zone, page, for Progress to look at. Thanks, anyway. .

  • Hi Tom,

    Instead of using Rollbase APIs, try using tinyMCE APIs.

    <script>
    function jl_concreteNote() { 
    var conc = document.theForm.create_reports_concrete_68043560.checked; 
    if(conc == true) 
    tinyMCE.get('note').insertContent("Bring J -Ring and Spread Board");
    }
    </script>


    It works like a charm!