How to add a button inside a section in form?
I want to add unset button to to photo and video
Example
The case is to store temporary boolean value to update column after save in edit
5 Replies
add to the schema
I decided to used toggle instead.. how can I store the record banner_file_id and video_file_id?
The case is if the photo and video is unset then It will update banner_file_id and vide_file_id into null else if cancelled then retain the data
_how can I store the record banner_file_id and video_fileid
What does it mean?
I don't know if it is the right approach but the case is on edit the PM wanted to have unset (toggle) on photo and video. The purpose on this is to make the fields banner_file_id and video_file_id if save changes and if not it will just retain the data
I don't want to make the fields null directly in case the edit is cancelled
maybe use observer then and update to null if needed there