copy part of input value from other field of same page

By: Massimiliano Mollo | Asked: 05/03/2022
ForumsCategory: General questionscopy part of input value from other field of same page
Massimiliano Mollo asked 2 years ago
hi,  i need to copy a part of value from Field A, the value of Field A are: "01/01/2022 9:00" Date and time. i need on Field B only date copied from Field A"01/01/2022" and on Field C only time copied from Field A "9:00" how make this mod?  tks  
Bobby Clapp replied 2 years ago

You will likely need to use js/jquery and split the string apart into an array and the once again use js/jquery to put the array pieces by index back into the appropriate fields.

Example: https://www.w3schools.com/jsref/jsref_split.asp

Making the Best WordPress Plugin even better - Together

Take on bigger projects with confidence knowing you have access to an entire community of Formidable Experts and Professionals who have your back when the going gets tough. You got this!
Join the community
crossarrow-right