Clear PopUp After Save so popup can be reused

  • 1
  • Question
  • Updated 4 years ago
I am using a popup to create a record.  I have some conditional rendering turned on based on a picklist value.  Everything is working well.  When I save the record in the pop up I am using the action framework to save the model, query the models to update the lists without refreshing and close the pop up.  Everything is working well except If I click on the popup again the data is still filled in with the information I had just saved.  How do I get the popup to reset so it is clean and ready to be filled out again.  It seems like I have seen this talked about somewhere and it was easy.  I just can't put my finger on it.  Thank you in advance.
Photo of Rich Slack

Rich Slack

  • 4,134 Points 4k badge 2x thumb

Posted 4 years ago

  • 1
Photo of mB Pat Vachon

mB Pat Vachon, Champion

  • 42,714 Points 20k badge 2x thumb
Weeeeee!!! I refer to myself and others when I'm having fun.

1. Create a model just for creating the new record. Use the following advanced settings.


2. In order to create a new row every time you show the popup take the following actions.


BAM!!!
Photo of Griffin Brown

Griffin Brown

  • 2,766 Points 2k badge 2x thumb
var you = daMan
Photo of Moshe Karmel

Moshe Karmel, Champion

  • 8,646 Points 5k badge 2x thumb
For those following at home, I would suggest that skuid add a chechbox on models with an option like "clear values when requeried" or "clear values after save". This issue is clearly affecting a lot of users and the whole "data entry model" thingy is slightly un-intuitive (not what I expect from skuidified people). I would suggest that there also be an option for the Type of model added to the picklist to be of Type "Basic", "Aggregate" or "Data Entry".
Photo of Rob Hatch

Rob Hatch, Official Rep

  • 44,006 Points 20k badge 2x thumb
Thanks for the reccomendation Moshe.  I've been working on data entry models this week too and run into similar problems.  Suggestion taken under advisement.