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);
}
@truth_trump
And how i can to add Post-Attachment Trigger with JavaScript? There is an documentation for this ?
@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/
@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
I found the solution is the function changeIniticaValue, i put this function in the field with the conditional and it worked