On "Edit Record" only fill field if it is currently empty but don't override...
In my Function Stack I want to Edit a Record but only fill the fields which are empty. I noticed there are filters for isEmpty which gives me true or false but I cant use this to set it if true.
π How can I achieve this?
Is it possible to use "Add Record", "Edit Record", etc in a Lambda Function?
Best Answer
-
there is a filter called first_notempty which is ideal for this. You pass in first the value from get_record, and the your new value. That way it re-populates the value from get record if its present, and falls back to your new value if it is not.
Answers
-
Hi,
From the top of my head I would try something like this:
First get the current record data and then use set conditional to change the value only if the current value in this field is empty.
-
okay did I get this right?
-
At a gloss it looks promising - can you share the results of your testing?
Categories
- All Categories
- 53 ? Announcements
- 47 ? Releases
- 37 ? Welcome
- 983 ? Help! I'm a Noob
- 125 ? No-Code Front-Ends
- 633 ? Working with APIs
- 439 ? Transforming data
- 126 ? Connect Xano to ...
- 50 ?β? Find an Expert
- 348 βOther questions
- 35 ? Security
- 22 βοΈ Snippets
- 19 ? Showcase
- 7 ?οΈ ο»Ώ Xano Chatter
- 62 ? Video Tutorials
- 171 ? Request a feature
- 229 ? Report a Bug
- 19 ? Templates & Extensions
- 7 ? Feedback