Submitting Inspections
Once you’ve completed filling out your inspection form, the final step is to submit it to the system for storage and processing.Submission Button
At the bottom of the inspection form, you’ll find the submission button:- Label: “Enviar” (Send)
- Type: Submit button
- Location: Bottom of the form, after the Observaciones field
- Styling: Primary action button (class
jsx-8e61cfe740c0e4d1)
The button submits the entire form, including all technical questions, observations, and metadata.
Before Submitting
Before clicking “Enviar”, ensure you’ve completed:Basic Information
- ✅ Fecha (Date) is correct
- ✅ Hora de Inicio (Start Time) is filled
- ✅ Hora de Fin (End Time) is filled (if required)
Equipment Selection
- ✅ División (Division) is selected
- ✅ Área (Area) is selected
- ✅ Zona (Zone) is selected
- ✅ Equipo (Equipment) is selected
Technical Questions
- ✅ All inspection questions are answered (OK, NOK, or NA)
- ✅ Review your answers for accuracy
The Submission Process
When you click the “Enviar” button, here’s what happens:Prevent Default Behavior
The form submission prevents the default browser behavior to handle the submission via JavaScript (
e.preventDefault()).Data Preparation
The system prepares the submission payload with all form data (see Data Payload Structure below).
API Request
An HTTP POST request is sent to:Endpoint: Body: JSON-encoded form data
http://10.107.194.110/insp/api/guardar/Method: POSTHeaders:Response Handling
The system processes the server response and displays appropriate feedback (see Response Messages below).
Data Payload Structure
When you submit the form, the following data is sent to the API:Core Form Fields
Field Descriptions
| Field | Type | Description | Example |
|---|---|---|---|
| fecha | String (ISO date) | Inspection date | ”2026-03-06” |
| horaInicio | String (time) | Start time of inspection | ”14:30:00” |
| horaFin | String (time) | End time of inspection | ”15:45:00” |
| division | String/Number | Selected division ID | ”1” |
| area | String/Number | Selected area ID | ”3” |
| zona | String/Number | Selected zone ID | ”7” |
| equipo | String/Number | Selected equipment ID | ”42” |
| observaciones | String | Additional notes and comments | ”Minor oil leak…“ |
| tecnicos | Object | Technical question responses | See below |
Tecnicos Object Structure
Thetecnicos object contains the answers to all technical inspection questions:
- Key format:
pregunta-[question_id] - Value options:
"OK"- Item passes inspection"NOK"- Item fails inspection"NA"- Item not applicable
The tecnicos object is dynamically built based on the questions loaded for the equipment category. Different equipment types will have different question sets.
Response Messages
After submission, the system displays status messages to inform you of the result.Success Response
When the inspection is successfully submitted: Message: “Formulario enviado correctamente” (Form submitted correctly) What happens:- Success message displays at the bottom of the form (class
status) - Data is stored in the backend database
- The form remains on screen (you may need to refresh or navigate away)
After a successful submission, you can:
- Click the browser back button to return to a list (if applicable)
- Navigate to a new inspection
- Log out
- Refresh the page to start a new inspection
Error Response
If the submission fails: Message: “Error al enviar” (Error sending) Possible Causes:- Network connectivity issues
- API server unavailable
- Invalid data format
- Server-side validation errors
- Database connection problems
Status Message Display
Status messages appear in a dedicated element:- CSS Class:
status - Location: Below the submission button
- Purpose: Provide real-time feedback on submission status
Message States
The status element shows different messages throughout the process:- Initial State: Empty or hidden
- Submitting State: May show loading indicator (implementation-dependent)
- Success State: “Formulario enviado correctamente”
- Error State: “Error al enviar”
After Submission
Successful Submission
After a successful submission:Start New Inspection (Optional)
If you need to perform another inspection:
- Refresh the page, or
- Navigate to the home page, or
- Use a new URL with different equipment parameter
Failed Submission
If submission fails:Check Network Connection
Verify you’re connected to the network and can access other internal resources.
Preserve Your Data
If errors persist:
- Copy your Observaciones text to a safe place
- Take screenshots of the form (especially the technical questions table)
- Note which equipment you were inspecting
Technical Details
API Endpoint Specification
Base URL:http://10.107.194.110/insp/
Submit Endpoint: /api/guardar/
Full URL: http://10.107.194.110/insp/api/guardar/
HTTP Request Details
Expected Response Format
Success Response:The exact response format may vary based on backend implementation. The client primarily checks for successful HTTP status codes.
Data Persistence
Understanding what happens to your submitted data:Where Data Goes
- Backend API: Receives the JSON payload at
/api/guardar/ - Validation Layer: Validates required fields and data formats
- Database: Stores the inspection record permanently
- Audit Trail: May log submission metadata (user, timestamp, etc.)
Data Retention
Submitted inspections are typically:- Stored permanently for compliance and historical records
- Associated with your user account (
usuario_inspeccionfrom localStorage) - Timestamped with submission date and time
- Queryable for reports and analysis
For questions about data retention policies, report generation, or accessing historical inspections, contact your system administrator.
Troubleshooting
”Enviar” Button Doesn’t Respond
Possible Causes:- JavaScript error on the page
- Form validation failure (HTML5)
- Button click handler not registered
- Check browser console for JavaScript errors
- Ensure all required fields are filled
- Try refreshing the page and re-entering data
- Try a different browser
Submission Takes Too Long
Possible Causes:- Slow network connection
- API server processing delays
- Large observaciones text
- Wait patiently for the response (up to 30 seconds)
- Check network connection speed
- Avoid refreshing the page during submission
Submission Succeeds But Data Missing
Possible Causes:- Backend storage error
- Database constraint violation
- Data transformation issues
- Contact system administrator immediately
- Provide the inspection details you submitted
- Check if the issue is systemic or isolated
Double Submission
Problem: Accidentally clicking “Enviar” multiple times Impact: May create duplicate inspection records Prevention:- Click the “Enviar” button only once
- Wait for the success/error message before taking further action
Best Practices
Before Submitting
- ✅ Review all answers: Double-check your technical question responses
- ✅ Explain NOK items: Use Observaciones to document any failed items
- ✅ Verify equipment: Ensure you selected the correct equipment
- ✅ Check times: Confirm start and end times are accurate
During Submission
- ✅ Click once: Press “Enviar” only one time
- ✅ Stay on page: Don’t navigate away during submission
- ✅ Wait for feedback: Look for the success or error message
After Submission
- ✅ Confirm success: Verify you see “Formulario enviado correctamente”
- ✅ Clear session: Refresh or log out to start fresh for the next inspection
- ✅ Report issues: If submission failed, report to support immediately
Integration with Other Systems
Submitted inspection data may integrate with:- CMMS: Computerized Maintenance Management System
- ERP: Enterprise Resource Planning system
- BI Tools: Business Intelligence and reporting platforms
- Compliance Systems: Safety and regulatory compliance tracking
The specific integrations depend on your organization’s configuration. Contact your system administrator for details about downstream data flow.
Next Steps
After successfully submitting an inspection:- Start a new inspection
- Review equipment selection for different equipment
- Log out if you’re finished
Need Help?
If you encounter persistent issues with submission:- Document the error: Screenshot the error message
- Check network: Verify connectivity to internal systems
- Try again: Refresh and attempt submission once more
- Contact support: Reach out with specific error details
