DFFS Alert

Home Forums General discussion DFFS Alert

Tagged: 

Viewing 1 reply thread
  • Author
    Posts
    • #28633
      HYM
      Participant

        Hi Alex, i am using the dffs alert in case someone is missing some info on the form but what i need to do is to add some fields in this alert so the user can directly update them from the alert for example “Comment” field to be editable from the alert. any idea or this feature is available now?

      • #28639
        Alexander Bautz
        Keymaster

          If you need to fill in some info in an alert you should use the spjs.modal instead – bring up the developer toolbar by hitting f12 and type in this to see all options:

          spjs.modal.help();

          Collecting info from a dialog and passing it back to the form is not a functionality that is available so the HTML elements must be added in the “html” argument to the function, and the code used to pass the data back to the form must be written in the “ok” function.

          Here is an example:

          spjs.modal.add({
              "title": "Enter your phone number",
              "html": "<input type='text' id='phone_number_input' style='width:100%;box-sizing:border-box'>",
              "ok": function () {
                  var title = jQuery("#phone_number_input").val();
                  setFieldValue("phone_number", title);
              }
          });

          Alexander

      Viewing 1 reply thread
      • You must be logged in to reply to this topic.