Skip to main content
Solved

In fsm Mobile the screen does not load my field after I add my photo even though I have the script


Forum|alt.badge.img+5

The fsm does not recognize that I added the photo so that the next field can appear
How to use the set control visibility function, as it does not work when activated in the field and photo

For exemple in this Scrip 
when I attach the photo it doesn't show the next field

 

 

Best answer by marcos.crispim

I found the solution is the function changeIniticaValue, i put this function in the field with the conditional  and it worked

View original
Did this topic help you find an answer to your question?

5 replies

Forum|alt.badge.img+3
  • Do Gooder (Customer)
  • 19 replies
  • January 24, 2025

Hi ​@marcos.crispim 

you can add a Post-Attachment Trigger with JavaScript

  • Use a custom event or script trigger to explicitly detect the completion of the photo upload process.
  • Example:
if (photoUploadCompleted) {
    setControlVisibility("NextField", true);
}

Forum|alt.badge.img+5
  • Author
  • Sidekick (Partner)
  • 9 replies
  • January 27, 2025

@truth_trump 

And how i can to add Post-Attachment Trigger with JavaScript? There is an documentation for this ?


Forum|alt.badge.img+3
  • Do Gooder (Customer)
  • 19 replies
  • January 27, 2025

@marcos.crispim you may try this method depending on your version and related API

  • Leverage IFS API: Use the appropriate IFS API endpoints for file uploads.

    • For example, use DocumentManagement_API.Add_Document to upload and attach files programmatically.
  • Event Listeners: Attach event listeners to fields or buttons.

    ClientEvent.subscribe("AttachmentAdded", function(eventData) {
        if (eventData.status === "success") {
            console.log("Attachment added successfully");
            setControlVisibility("nextField", true); // Update UI
        }
    });
    
     
  • Integrate with IFS Aurena Customization:

    • Use Page Designer in Aurena to add JavaScript actions for custom fields.
    • Example:
      • Add a client script that listens to file upload events and triggers dependent actions.

 


this may help too

https://docs.ifs.com/techdocs/24r1/040_tailoring/300_extensibility/010_get_started/400_quickstarts/

 


Forum|alt.badge.img+5
  • Author
  • Sidekick (Partner)
  • 9 replies
  • January 28, 2025

@truth_trump n

Is not in the cloud, Its in the FMS MOBILE

 

if (isNullOrEmptyString(p1f) == true) {
    setControlVisibility('c_apr_t', 'p1f', false);
} else {
    setControlVisibility('c_apr_t', 'p1f', true);
}

at the moment it is like this


Forum|alt.badge.img+5
  • Author
  • Sidekick (Partner)
  • 9 replies
  • Answer
  • January 29, 2025

I found the solution is the function changeIniticaValue, i put this function in the field with the conditional  and it worked


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings