rich text field not working on mobile

  • 0
  • 1
  • Question
  • Updated 8 months ago
  • In Progress
Trying to make a save and redirect button. (I have hidden the native save buttons)

So any rich text formula fields that I create don't work (they are visible but have no action) on the mobile version of any form.  I have tried all the formulas in the "magic buttons app"

a formula URL button seems to work, however it bypasses the forms dynamic rules as well as any field "required to be completed" rules.

Has anyone had an issue with the ability to press a rich tex button in the mobile version?
Photo of Geoffrey

Geoffrey

  • 1,730 Points 1k badge 2x thumb

Posted 8 months ago

  • 0
  • 1
Photo of Matthew Neil

Matthew Neil

  • 31,478 Points 20k badge 2x thumb
It depends on the 'call' that you are trying to make.  I have seen some issues with different js calls in mobile, depending on what technique, and also what type of code page is running.

Can you give an example of your formula and the desired behavior?




Matthew Neil - Product Specialist
Photo of Geoffrey

Geoffrey

  • 1,730 Points 1k badge 2x thumb
I posted my code below - Let me know if you can assist (on or off world it doesn't matter)
Photo of Geoffrey

Geoffrey

  • 1,730 Points 1k badge 2x thumb
So its a little more complicated because I am using iOL.


The button contains the following code:

[iol] & "moduleSurveySave.js" & [/iol]
&
"<a class='QBU_Submit Vibrant Success'>Submit</a>"

The moduleSurveySave.js contains the following code:

(function(){
  var querystring=document.location.search;
  var dbid = "bk7x2wk2j";
  var dbidSurveys = "bnjvqx7q9";

  if (/nwr/i.test(querystring) || /a=er/i.test(querystring) || /a=FinishEditRecord/i.test(querystring) || /a=API_GenAddRecordForm/i.test(querystring)) {

    $("#formFooterButtonsContainer").hide();
    $(".IconOnly").hide();
    $("#saveButton").hide();

    $("div.btn-form-footer.btn-form-container-3btns").hide();
    //removes full footer buttons in mobile

    $("div.btn-form-header.btn-form-container-3btns").hide();
    //removes full header buttons in mobile

    $("#RedirectURL").val(dbid);
    $("input[name=rl]").val("");

    $("a.QBU_Submit").on("click", function(event) {
      $("#saveButton").trigger("click");
    });
  }

})();
(Edited)
Photo of Geoffrey

Geoffrey

  • 1,730 Points 1k badge 2x thumb
can anyone help me please?
Photo of Geoffrey

Geoffrey

  • 1,730 Points 1k badge 2x thumb
???